Exemple #1
0
        public void GetDataSetWithIncorrectNameReturnsNull()
        {
            RuleMSX rmsx           = new RuleMSX();
            string  newDataSetName = "NewDataSet";

            rmsx.CreateDataSet(newDataSetName);
            DataSet ds = rmsx.GetDataSet("SomeOtherName");

            Assert.IsNull(ds);
        }
Exemple #2
0
        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));
        }