public void testExplicitGenericImplementation1_3()
        {
            IGenericInterface <byte> x = new ExplicitGenericImplementation1 <byte>();

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

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

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

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

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

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

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