Exemplo n.º 1
0
        public void Can_Dispatch_To_Closed_Generic_Types()
        {
            IShape generic = new GenericShape <int>();

            Assert.AreEqual("GenericShape<Int32> x GenericShape<Int32>", generic.Intersect(generic));
        }
Exemplo n.º 2
0
 public string Intersect(GenericShape <T> other)
 {
     return(string.Format("GenericShape<{0}> x GenericShape<{0}>", typeof(T).Name));
 }