public void testGenericImplementation1_9()
        {
            IGenericInterface <double> x = new GenericImplementation1 <double>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0.0, 0.000001);
        }
        public void testGenericImplementation1_8()
        {
            IGenericInterface <float> x = new GenericImplementation1 <float>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0.0F);
        }
        public void testGenericImplementation1_1()
        {
            IGenericInterface <string> x = new GenericImplementation1 <string>();

            x.Foo("hello");
            AssertNull(x.FooReturn());
        }
        public void testGenericImplementation1_6()
        {
            IGenericInterface <short> x = new GenericImplementation1 <short>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), (short)0);
        }
        public void testGenericImplementation1_7()
        {
            IGenericInterface <long> x = new GenericImplementation1 <long>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0L);
        }
        public void testGenericImplementation1_4()
        {
            IGenericInterface <sbyte> x = new GenericImplementation1 <sbyte>();

            x.Foo(6);
            AssertEquals((int)x.FooReturn(), 0);
        }
        public void testGenericImplementation1_5()
        {
            IGenericInterface <char> x = new GenericImplementation1 <char>();

            x.Foo('6');
            AssertEquals(x.FooReturn(), '\0');
        }
        public void testGenericImplementation1_2()
        {
            IGenericInterface <int> x = new GenericImplementation1 <int>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0);
        }
示例#9
0
 public void testGenericImplementation1_1()
 {
     IGenericInterface<string> x = new GenericImplementation1<string>();
     x.Foo("hello");
     AssertNull(x.FooReturn());
 }
示例#10
0
 public void testGenericImplementation1_8()
 {
     IGenericInterface<float> x = new GenericImplementation1<float>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0.0F);
 }
示例#11
0
 public void testGenericImplementation1_9()
 {
     IGenericInterface<double> x = new GenericImplementation1<double>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0.0, 0.000001);
 }
示例#12
0
 public void testGenericImplementation1_7()
 {
     IGenericInterface<long> x = new GenericImplementation1<long>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0L);
 }
示例#13
0
 public void testGenericImplementation1_6()
 {
     IGenericInterface<short> x = new GenericImplementation1<short>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), (short)0);
 }
示例#14
0
 public void testGenericImplementation1_5()
 {
     IGenericInterface<char> x = new GenericImplementation1<char>();
     x.Foo('6');
     AssertEquals(x.FooReturn(), '\0');
 }
示例#15
0
 public void testGenericImplementation1_4()
 {
     IGenericInterface<sbyte> x = new GenericImplementation1<sbyte>();
     x.Foo(6);
     AssertEquals((int)x.FooReturn(), 0);
 }
示例#16
0
 public void testGenericImplementation1_2()
 {
     IGenericInterface<int> x = new GenericImplementation1<int>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0);
 }