public void Equatable_DifferentEtag_ShouldNotEqual() { var pc1 = new ProjectConfig("pc1", DateTime.UtcNow, "etag1"); var pc2 = new ProjectConfig("pc1", DateTime.UtcNow, "etag2"); Assert.IsFalse(pc1.Equals(pc2)); Assert.AreNotEqual(pc1, pc2); }
public void Equatable_SameETagAndJsonString_ShouldEqual() { const string jsonString = "{}"; const string etag = "you have not enough minerals"; var pc1 = new ProjectConfig(jsonString, DateTime.UtcNow, etag); var pc2 = new ProjectConfig(jsonString, DateTime.UtcNow, etag); Assert.IsTrue(pc1.Equals(pc2)); Assert.AreEqual(pc1, pc2); }
public void Equatable_CompareWithNull_ShouldDifferent() { var pc1 = new ProjectConfig("pc1", DateTime.UtcNow, "etag1"); Assert.IsFalse(pc1.Equals(null)); }