Пример #1
0
        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);
        }
Пример #2
0
        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);
        }