Exemplo n.º 1
0
        public Task Abioc(MethodData method)
        {
            // Work around the problem with generic parameters
            if (method.MethodUnderTest.IsGenericMethod && method.MethodUnderTest.ContainsGenericParameters)
            {
                _output.WriteLine("Skipping the test '{0}' as the method is generic.", method.MethodUnderTest);
                return(Task.CompletedTask);
            }

            return(method.Execute());
        }
Exemplo n.º 2
0
        public async Task ExplicitEquals(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            if (method.NullParameter == "stringValue1")
            {
                Assert.True(Issues.Issue015.ExplicitEquals.TestedStringValue1);
            }

            if (method.NullParameter == "stringValue2")
            {
                Assert.True(Issues.Issue015.ExplicitEquals.TestedStringValue2);
            }

            if (method.NullParameter == "stringValue3")
            {
                Assert.True(Issues.Issue015.ExplicitEquals.TestedStringValue3);
            }
        }
 public Task TestAllNullArguments(MethodData method)
 {
     return(method.Execute());
 }
Exemplo n.º 4
0
 public Task CloudFlareYaml(MethodData method)
 {
     return(method.Execute());
 }
Exemplo n.º 5
0
 public Task TeslaNet(MethodData method)
 {
     return(method.Execute());
 }
Exemplo n.º 6
0
        public async Task ImplicitEquals(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(Issues.Issue015.ImplicitEquals.Tested);
        }
        public async Task TestNullArguments(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(SpecialCharacters.Tested);
        }
        public async Task TestStringInput(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(SomeNullableValueTypeParameters.StringInputTested);
        }
        public async Task OnlyTestPublic(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(Mixture.Tested);
        }
        public async Task TestNullArguments(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(YieldExample.Tested);
        }
Exemplo n.º 11
0
        public async Task ComplexClassValue(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(ComplexGenericMethods.ClassValueTested);
        }
Exemplo n.º 12
0
        public async Task InterfaceStringValue(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(InterfaceGenericMethods.StringValueTested);
        }
Exemplo n.º 13
0
        public async Task SimpleException(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(SimpleGenericMethods.GenericExceptionMethodTested);
        }
Exemplo n.º 14
0
        public async Task ComplexGenericExceptionMethodStringValue(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(ComplexGenericMethods.GenericExceptionMethodStringValueTested);
        }
        public async Task TestGenericClass(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(GenericClassBase.Tested);
        }
 public Task WebJobs(MethodData method)
 {
     return(method.Execute());
 }
        public async Task TestStringRef(MethodData method)
        {
            await method.Execute().ConfigureAwait(false);

            Assert.True(SomeOutParameters.StringRefTested);
        }