public void TestParametre(Client.TypeClient pType, Single pMtEc, Single pMtCmd, Boolean pResult) { // Assign Client oClient = new Client(); oClient.Type = pType; oClient.MtEc = pMtEc; // Act Boolean bRes = oClient.Accepte(pMtCmd); // Assert Assert.AreEqual(pResult, bRes); }
public void TestNormlEcinf1000Cmd1000_5000() { // Assign Client oClient = new Client(); oClient.Type = Client.TypeClient.NORMAL; oClient.MtEc = new Random().Next(0, 1000); // Act Boolean bRes = oClient.Accepte(new Random().Next(1000, 5000)); // Assert Assert.IsTrue(bRes); }