public void Can_Dispatch_To_Closed_Generic_Types() { IShape generic = new GenericShape <int>(); Assert.AreEqual("GenericShape<Int32> x GenericShape<Int32>", generic.Intersect(generic)); }
public string Intersect(GenericShape <T> other) { return(string.Format("GenericShape<{0}> x GenericShape<{0}>", typeof(T).Name)); }