public void Constructor_TrimWildCardsTrue_PatternIsTrimmed() { Pattern pattern = new Pattern(_bytePattern, _mask, true); var expected = new byte[] { 0x10, 0x20, 0x30, 0x40, 0x00 }; CollectionAssert.AreEquivalent(expected, pattern._pattern); }
public void Constructor_TrimWildCardsTrue_MaskIsTrimmed() { Pattern pattern = new Pattern(_bytePattern, _mask, true); var expected = new bool[] { true, true, true, true, true }; CollectionAssert.AreEquivalent(expected, pattern._mask); }