public void Field_Order_Works_With_Inheritance() { var g = Guid.NewGuid(); var pc = new PatternC(g, 1000); var pd = new PatternD(g, 1000, 1234); Assert.IsTrue(pd.ToString().StartsWith(pc.ToString())); }
public void Field_Order_Matters() { var g = Guid.NewGuid(); var pb = new PatternB(g, 1000); var pc = new PatternC(g, 1000); Assert.AreNotEqual(pb.ToString(), pc.ToString()); }