Example #1
0
        public void GetRssi_ValidState_EqualsConstructorParameter()
        {
            // Setup
            sbyte rssi = 123;

            var args = new RssiEventArgs(
                new Mock<IMyo>().Object,
                DateTime.UtcNow,
                rssi);

            // Execute
            var result = args.Rssi;

            // Assert
            Assert.Equal(rssi, result);
        }
Example #2
0
        public void GetMyo_ValidState_EqualsConstructorParameter()
        {
            // Setup
            var myo = new Mock<IMyo>();

            var args = new RssiEventArgs(
                myo.Object,
                DateTime.UtcNow,
                0);

            // Execute
            var result = args.Myo;

            // Assert
            Assert.Equal(myo.Object, result);
        }
Example #3
0
        public void GetTimestamp_ValidState_EqualsConstructorParameter()
        {
            // Setup
            var timestamp = DateTime.UtcNow;

            var args = new RssiEventArgs(
                new Mock<IMyo>().Object,
                timestamp,
                0);

            // Execute
            var result = args.Timestamp;

            // Assert
            Assert.Equal(timestamp, result);
        }