public void TestMethodWE3() { WarehouseEditor edt = new WarehouseEditor(); edt.AssignTextBoxes(new string[] { "-1", "TESTWAREHOUSE", "TESTWAREHOUSE", "6" }); edt.PerformSave(); NUnit.Framework.Assert.Pass(); }
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"); }