Esempio n. 1
0
        public void testExplicitGenericImplementation1_3()
        {
            IGenericInterface <byte> x = new ExplicitGenericImplementation1 <byte>();

            x.Foo(6);
            AssertEquals((int)x.FooReturn(), 0);
        }
Esempio n. 2
0
        public void testExplicitGenericImplementation1_1()
        {
            IGenericInterface <string> x = new ExplicitGenericImplementation1 <string>();

            x.Foo("hello");
            AssertNull(x.FooReturn());
        }
Esempio n. 3
0
        public void testExplicitGenericImplementation1_2()
        {
            IGenericInterface <int> x = new ExplicitGenericImplementation1 <int>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0);
        }
Esempio n. 4
0
        public void testExplicitGenericImplementation1_7()
        {
            IGenericInterface <long> x = new ExplicitGenericImplementation1 <long>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0L);
        }
Esempio n. 5
0
        public void testExplicitGenericImplementation1_9()
        {
            IGenericInterface <double> x = new ExplicitGenericImplementation1 <double>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), 0.0, 0.000001);
        }
Esempio n. 6
0
        public void testExplicitGenericImplementation1_5()
        {
            IGenericInterface <char> x = new ExplicitGenericImplementation1 <char>();

            x.Foo('6');
            AssertEquals(x.FooReturn(), '\0');
        }
Esempio n. 7
0
        public void testExplicitGenericImplementation1_6()
        {
            IGenericInterface <short> x = new ExplicitGenericImplementation1 <short>();

            x.Foo(6);
            AssertEquals(x.FooReturn(), (short)0);
        }
Esempio n. 8
0
 public void testExplicitGenericImplementation1_4()
 {
     IGenericInterface<sbyte> x = new ExplicitGenericImplementation1<sbyte>();
     x.Foo(6);
     AssertEquals((int)x.FooReturn(), 0);
 }
Esempio n. 9
0
 public void testExplicitGenericImplementation1_5()
 {
     IGenericInterface<char> x = new ExplicitGenericImplementation1<char>();
     x.Foo('6');
     AssertEquals(x.FooReturn(), '\0');
 }
Esempio n. 10
0
 public void testExplicitGenericImplementation1_2()
 {
     IGenericInterface<int> x = new ExplicitGenericImplementation1<int>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0);
 }
Esempio n. 11
0
 public void testExplicitGenericImplementation1_1()
 {
     IGenericInterface<string> x = new ExplicitGenericImplementation1<string>();
     x.Foo("hello");
     AssertNull(x.FooReturn());
 }
Esempio n. 12
0
 public void testExplicitGenericImplementation1_9()
 {
     IGenericInterface<double> x = new ExplicitGenericImplementation1<double>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0.0, 0.000001);
 }
Esempio n. 13
0
 public void testExplicitGenericImplementation1_7()
 {
     IGenericInterface<long> x = new ExplicitGenericImplementation1<long>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), 0L);
 }
Esempio n. 14
0
 public void testExplicitGenericImplementation1_6()
 {
     IGenericInterface<short> x = new ExplicitGenericImplementation1<short>();
     x.Foo(6);
     AssertEquals(x.FooReturn(), (short)0);
 }