コード例 #1
0
        public void ReceiverProperty_ConstructorWithParameters_ReturnsGivenValues(Code code, int receiverValue)
        {
            var result = new ReceiverProperty(code, receiverValue);

            Assert.AreEqual(result.Code, code);
            Assert.AreEqual(result.ReceiverValue, receiverValue);
        }
コード例 #2
0
        //[TestCase()]
        public void ReceiverProperty_EmptyConstructor_ReturnsDefaults()
        {
            var result = new ReceiverProperty();

            Assert.AreEqual(result.Code, Code.CODE_ANALOG);
            Assert.AreEqual(result.ReceiverValue, 0);
        }