public void Should_fix_all_args() { var pattern = new Required(new Argument("N"), new Argument("N")); Assert.AreEqual(pattern.Children[0], pattern.Children[1]); Assert.AreNotSame(pattern.Children[0], pattern.Children[1]); pattern.FixIdentities(); Assert.AreSame(pattern.Children[0], pattern.Children[1]); }
public void Should_fix_all_args() { var pattern = new Required(new Argument("N"), new Argument("N")); Assert.AreEqual(pattern.Children[0], pattern.Children[1]); Assert.AreNotSame(pattern.Children[0], pattern.Children[1]); pattern.FixIdentities(); Assert.AreSame(pattern.Children[0], pattern.Children[1]); }