public void Sync_Contracts_NoExistingLinks() { var newPVs = new[] { pvContract }; var result = manager.Sync(newPVs, CreatePV); Assert.IsNotNull(result, "result is not null"); Assert.IsTrue(result.Changed, "is changed"); Assert.AreEqual(1, result.Added.Length, "1 added"); Assert.AreEqual(0, result.Edited.Length, "none edited"); Assert.AreEqual(0, result.Removed.Length, "none removed"); Assert.AreEqual(0, result.Unchanged.Length, "none unchanged"); Assert.IsTrue(result.Added.First().ContentEquals(pvContract), "added PV matches contract"); }
public void Sync_Contracts_NoExistingLinks() { var newPVs = new[] { _pvContract }; var result = _manager.Sync(newPVs, CreatePV); result.Should().NotBeNull("result is not null"); result.Changed.Should().BeTrue("is changed"); result.Added.Length.Should().Be(1, "1 added"); result.Edited.Length.Should().Be(0, "none edited"); result.Removed.Length.Should().Be(0, "none removed"); result.Unchanged.Length.Should().Be(0, "none unchanged"); result.Added.First().ContentEquals(_pvContract).Should().BeTrue("added PV matches contract"); }