public void AddLocalStitch_Replace() { var target = new MasterStitchCache("1"); target.AddLocalStitch("ABC", new StitchGroupName("A.B.C")); var result = target.GetStitchSummaries(); result.Count.Should().Be(1); result[0].Id.Should().Be("ABC"); target.AddLocalStitch("ABC", new StitchGroupName("A.B.D")); result = target.GetStitchSummaries(); result.Count.Should().Be(1); result[0].Id.Should().Be("ABC"); result[0].GroupName.VersionString.Should().Be("A.B.D"); }
public void RemoveLocalStitch_Test() { var target = new MasterStitchCache("1"); target.AddLocalStitch("ABC", new StitchGroupName("A.B.C")); target.RemoveLocalStitch("ABC"); var result = target.GetStitchSummaries(); result.Count.Should().Be(0); }