public void TestClusterStatusRefresh() { ClusterStatus clusterStatus = new ClusterStatus("er-clust1-c07"); clusterStatus.Cluster = "er-clust1-c07"; bool ActualResult = clusterStatus.Refresh(); string ActualString = clusterStatus.ToString(); string ExpectedString = "er-clust1-c07: -1/-2"; bool expectedResult = true; Assert.AreEqual(expectedResult, ActualResult); Assert.AreEqual(ExpectedString, ActualString); }
public void TestClusterStatusRefresh() { ClusterStatus clusterStatus = new ClusterStatus("er-clust1-c07") { Cluster = "er-clust1-c07" }; bool actualResult = clusterStatus.Refresh(); Assert.AreEqual(true, actualResult); const string expectedString = "er-clust1-c07: -1/-2"; string actualString = clusterStatus.ToString(); Assert.AreEqual(expectedString, actualString); }