public void TestAlwaysExists() { // Arrange string type = this.Util.GetTestValue("type"); string key = this.Util.GetTestValue("key"); string value0 = this.Util.GetTestValue("value0"); string value1 = this.Util.GetTestValue("value1"); DataSet ds = new DataSet("TestDataSet", type); ds.NewInstance(); DataPoint dp = new DataPoint(ds, type, key, value0); ds.NewInstance(); dp.AddValue(value1); // Act bool a = dp.AlwaysExists(); ds.NewInstance(); bool b = dp.AlwaysExists(); // Assert Assert.IsTrue(a, "AlwaysExists should return true if DataPoint instance count matches DataSet instance count"); Assert.IsFalse(b, "AlwaysExists should return false if DataPoint instance count does not match DataSet instance count"); }