public void ShoulNotBeEqualsClusters() { OCluster cluster1 = new OCluster { Id = 11, Name = "TestCluster" }; OCluster cluster2 = new OCluster { Id = 11, Name = "TestCluster", Type = OClusterType.Memory }; Assert.NotEqual(cluster1, cluster2); Assert.False(cluster1 == cluster2); }
public void ShoulBeEqualsClusters() { OCluster cluster1 = new OCluster { Id = 11, Name = "TestCluster", Type = OClusterType.Memory }; OCluster cluster2 = new OCluster { Id = 11, Name = "TestCluster", Type = OClusterType.Memory }; Assert.AreEqual(cluster1, cluster2); Assert.IsTrue(cluster1 == cluster2); }