예제 #1
0
        public void DescriptionExists()
        {
            // Arrange
            var cmd = new DISPLAY_DATA();

            // Act
            var desc = cmd.Description;

            // Assert
            Assert.NotNull(desc);
        }
예제 #2
0
        public void CommandWithColorInvertFormatParameters()
        {
            // Arrange
            var cmd      = new DISPLAY_DATA();
            var expected = ":DISPlay:DATA? ON, OFF, BMP24";

            // Act
            var actual = cmd.Command("ON", "OFF", "BMP24");

            // Assert
            Assert.Equal(expected, actual);
        }
예제 #3
0
        public void CommandWithColorParameter()
        {
            // Arrange
            var cmd      = new DISPLAY_DATA();
            var expected = ":DISPlay:DATA? ON";

            // Act
            var actual = cmd.Command("ON");

            // Assert
            Assert.Equal(expected, actual);
        }