public void SimpleJsonObjectTest() { var sanitisedObject = _sanitiser.SanitiseSnapshot(new { Key = "Value" }); sanitisedObject.Should().BeEquivalentTo(new { Key = "Value" }); }
public void MatchSnapshot(object snapshot, SnapshotId snapshotId) { var sanitisedSnapshot = _snapshotSanitiser.SanitiseSnapshot(snapshot); var result = Snap(snapshotId, sanitisedSnapshot); _snapshotAsserter.AssertSnapshot(result); }
public SnapResult MatchChildSnapshot(object snapshot, string childSnapshotName) { var snapId = _snapshotIdResolver.ResolveSnapshotId(childSnapshotName); var sanitisedSnapshot = _snapshotSanitiser.SanitiseSnapshot(snapshot); return(Snap(snapId, sanitisedSnapshot)); }
public void MatchSnapshot(object snapshot, string partialSnapshotName) { var snapId = _snapshotIdResolver.ResolveSnapshotId(partialSnapshotName); var sanitisedSnapshot = _snapshotSanitiser.SanitiseSnapshot(snapshot); var result = Snap(snapId, sanitisedSnapshot); _snapshotAsserter.AssertSnapshot(result); }
public SnapResult MatchSnapshot(object snapshot, SnapshotId snapshotId) { var sanitisedSnapshot = _snapshotSanitiser.SanitiseSnapshot(snapshot); return(Snap(snapshotId, sanitisedSnapshot)); }