public void GetDataSetWithIncorrectNameReturnsNull() { RuleMSX rmsx = new RuleMSX(); string newDataSetName = "NewDataSet"; rmsx.CreateDataSet(newDataSetName); DataSet ds = rmsx.GetDataSet("SomeOtherName"); Assert.IsNull(ds); }
public void GetDataSetByNameReturnsCorrectDataSet() { RuleMSX rmsx = new RuleMSX(); string newDataSetName = "NewDataSet"; rmsx.CreateDataSet(newDataSetName); DataSet ds = rmsx.GetDataSet(newDataSetName); Assert.That(ds.GetName(), Is.EqualTo(newDataSetName)); }