public void GetViewNamesReturnsAlwaysTheSameCollection() { TestableObjectContainerDataSource control = new TestableObjectContainerDataSource(); ICollection result1 = control.TestGetViewNames(); ICollection result2 = control.TestGetViewNames(); Assert.AreSame(result1, result2); }
public void GetViewNamesReturnsDefaultViewOnly() { TestableObjectContainerDataSource control = new TestableObjectContainerDataSource(); ArrayList viewNames = new ArrayList(control.TestGetViewNames()); Assert.AreEqual(1, viewNames.Count); Assert.IsTrue(viewNames.Contains("DefaultView")); }
public void GetViewNamesReturnsDefaultViewOnly() { TestableObjectContainerDataSource control = new TestableObjectContainerDataSource(); ArrayList viewNames = new ArrayList(control.TestGetViewNames()); Assert.AreEqual(1, viewNames.Count); Assert.IsTrue(viewNames.Contains("DefaultView")); }
public void GetViewNamesReturnsAlwaysTheSameCollection() { TestableObjectContainerDataSource control = new TestableObjectContainerDataSource(); ICollection result1 = control.TestGetViewNames(); ICollection result2 = control.TestGetViewNames(); Assert.AreSame(result1, result2); }