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