CheckCellTests.LCSTests.TestEmptyEntered C# (CSharp) Method

TestEmptyEntered() private method

private TestEmptyEntered ( ) : void
return void
        public void TestEmptyEntered()
        {
            string a = "0";
            string b = "";
            // get LCS
            var al = LongestCommonSubsequence.LeftAlignedLCS(a, b);
            // find all character additions
            var ad = LongestCommonSubsequence.GetAddedCharIndices(b, al);
            // find all character omissions
            var om = LongestCommonSubsequence.GetMissingCharIndices(a, al);
            // find all transpositions
            var ou = LongestCommonSubsequence.FixTranspositions(al, ad, om, a, b);
            // new string
            string b2 = ou.Item1;
            // new alignments
            var al2 = ou.Item2;
            // new additions
            var ad2 = ou.Item3;
            // new omissions
            var om2 = ou.Item4;
            // deltas
            var d = ou.Item5;
            // get typos
            var t = LongestCommonSubsequence.GetTypos(al2, a, b2);

            Assert.AreEqual(1, om.Count());
            Assert.AreEqual(1, t.Count());
        }