コード例 #1
0
        public void FormatMac_64BitMac()
        {
            var input  = "AABBCCDDEEFF0011";
            var result = NetworkAdapterDeviceIdComponent.FormatMacAddress(input);

            result.ShouldBeEquivalentTo("AA:BB:CC:DD:EE:FF:00:11", "MAC address should be formatted");
        }
コード例 #2
0
        public void FormatMac_NonMac()
        {
            var input  = "Try me";
            var result = NetworkAdapterDeviceIdComponent.FormatMacAddress(input);

            result.ShouldBeEquivalentTo(input, "Non MAC addresses are not formatted");
        }