2019-10-17 16:57:31 +03:00
|
|
|
#pragma once
|
|
|
|
#include "TestRunner.g.h"
|
|
|
|
|
|
|
|
namespace winrt::TestComponent::implementation
|
|
|
|
{
|
|
|
|
struct TestRunner
|
|
|
|
{
|
|
|
|
TestRunner() = default;
|
|
|
|
|
2020-02-03 20:15:10 +03:00
|
|
|
static void TestProducer(ITests const& callee);
|
|
|
|
static uint32_t TestConsumer(TestHandler const& caller);
|
2019-10-17 17:43:09 +03:00
|
|
|
static void TestSelf();
|
2020-02-03 22:28:38 +03:00
|
|
|
static ITests MakeTests();
|
2020-07-02 21:52:24 +03:00
|
|
|
static Windows::Foundation::Collections::IVector<int32_t> CreateInt32Vector();
|
|
|
|
static Windows::Foundation::Collections::IVector<hstring> CreateStringVector();
|
|
|
|
static Windows::Foundation::Collections::IVector<Windows::Foundation::IStringable> CreateStringableVector();
|
2020-07-07 10:14:03 +03:00
|
|
|
static Windows::Foundation::TimeSpan CreateTimeSpan(uint32_t milliseconds);
|
|
|
|
static Windows::Foundation::IAsyncAction CreateAsyncAction(uint32_t milliseconds);
|
2020-08-01 01:33:27 +03:00
|
|
|
static hstring ExpectObject(Windows::Foundation::IInspectable const& value);
|
2019-10-17 16:57:31 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace winrt::TestComponent::factory_implementation
|
|
|
|
{
|
|
|
|
struct TestRunner : TestRunnerT<TestRunner, implementation::TestRunner>
|
|
|
|
{
|
|
|
|
};
|
|
|
|
}
|