Exemple #1
0
        public void SubFontTools_ExtractKerningFromLine_FailsOnMissingData(string line)
        {
            var messenger = Substitute.For <IFrameworkMessenger>();

            ISubFontTools tools = new SubFontTools(messenger);

            Assert.Null(tools.ExtractKerningFromLine(line).Item1);
        }
Exemple #2
0
        public void SubFontTools_ExtractKerningFromLine_CorrectlyExtracts(string line,
                                                                          char first,
                                                                          char second,
                                                                          short amount)
        {
            var messenger = Substitute.For <IFrameworkMessenger>();

            ISubFontTools tools = new SubFontTools(messenger);

            var result = tools.ExtractKerningFromLine(line);

            Assert.Equal(first, result.Item1);
            Assert.Equal(second, result.Item2);
            Assert.Equal(amount, result.Item3);
        }