public void Test_Flintlock_ChangeOwner() { var x = new Flintlock("Colt", 1820, 7.5, "John Doe"); x.UpdateOwner("MIA"); Assert.IsTrue(x.Owner == "MIA"); }
public void Test_Flintlock_Brand_NotEmpty() { Assert.Catch(() => { var x = new Flintlock("", 1820, 7.5, "John Doe"); }); }
public void Test_Flintlock_MacufactureDate_NotNeg() { Assert.Catch(() => { var x = new Flintlock("Colt", -1820, 7.5, "John Doe"); }); }
public void Test_Flintlock_Arguments() { var x = new Flintlock("Colt", 1820, 7.5, "John Doe"); Assert.IsTrue(x.Brand == "Colt" && x.ManufactureDate == 1820 && x.Calibre == 7.5); }