Example #1
0
        public void StaticAndDynamicProtoOverrideTest()
        {
            GenericStorage<int> test = new GenericStorage<int>();
            test.GenericStorage_1Prototype = new GenericStorage<int>.PrototypeClass();

            test.GenericStorage_1Prototype.SetMakeMeSome_2<int,string>((x, y, z) => { return 30; });
            GenericStorage<int>.StaticPrototype.SetMakeMeSome_2<int, string>((x, y, z) => { return 20; });

            Assert.That(test.MakeMeSome<int, string>("s", 10) == 30);
        }