示例#1
0
        public void TryParseCoreString_InvalidInput_ReturnsFalse()
        {
            var _inputString = "adsfkjgasdfkgdfkasgj";
            var _match       = 0xF;

            var _isCoreString = BitmaskExtensions.TryParseCoreString(_inputString, out long _result);
            var result        = _isCoreString && Int64.Equals((long)_match, (long)_result);

            Assert.IsFalse(result);
        }
示例#2
0
        public void TryParseCoreString_QuadCoreString_ReturnsTrue()
        {
            var _inputString = "0,1,2,3";
            var _match       = 0xF; // core0-core3

            var _isCoreString = BitmaskExtensions.TryParseCoreString(_inputString, out long _result);
            var result        = Int64.Equals((long)_match, (long)_result);

            Assert.IsTrue(result);
        }