Example #1
0
        public void GetFirmwareVersionTest1()
        {
            QuickUsb target = new QuickUsb("QUSB-0");
            Version  version;
            Version  versionExpected = new Version(2, 15, 0); // This may change
            bool     expected        = true;
            bool     actual;

            actual = target.GetFirmwareVersion(out version);
            Assert.AreEqual(versionExpected, version);
            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void GetFirmwareVersionTest()
        {
            QuickUsb target               = new QuickUsb("QUSB-0");
            ushort   majorVersion         = 0;
            ushort   majorVersionExpected = 2;
            ushort   minorVersion         = 0;
            ushort   minorVersionExpected = 15;
            ushort   buildVersion         = 0;
            ushort   buildVersionExpected = 0;
            bool     expected             = true;
            bool     actual;

            actual = target.GetFirmwareVersion(out majorVersion, out minorVersion, out buildVersion);
            Assert.AreEqual(majorVersionExpected, majorVersion);
            Assert.AreEqual(minorVersionExpected, minorVersion);
            Assert.AreEqual(buildVersionExpected, buildVersion);
            Assert.AreEqual(expected, actual);
        }