示例#1
0
        public void TestMethodWE3()
        {
            WarehouseEditor edt = new WarehouseEditor();

            edt.AssignTextBoxes(new string[] { "-1", "TESTWAREHOUSE", "TESTWAREHOUSE", "6" });
            edt.PerformSave();
            NUnit.Framework.Assert.Pass();
        }
示例#2
0
        public void TestMethodWE4()
        {
            WarehouseEditor edt = new WarehouseEditor();

            edt.AssignTextBoxes(new string[] { "-1", "TESTWAREHOUSE2", "TESTWAREHOUSE2", "6" });
            edt.PerformSave();

            string id = Sql.GetString($"SELECT dbo.ValidateWarehouse('{"TESTWAREHOUSE2"}','{"TESTWAREHOUSE2"}')");

            NUnit.Framework.Assert.That(int.Parse(id) > 0, "Failed warehouse insert");
        }