private void AddCharAndCheck(char c, AddCharStatus expectedStatus, string expectedGrapheme)
 {
     AddCharResult res = _t.AddChar(c);
     Assert.That(res.Status, Is.EqualTo(expectedStatus));
     if (expectedGrapheme == null)
     {
         Assert.That(res.Grapheme, Is.Null);
     }
     else
     {
         Assert.That(res.Grapheme, Is.EqualTo(expectedGrapheme));
     }
 }
        private void AddCharAndCheck(char c, AddCharStatus expectedStatus, string expectedGrapheme)
        {
            AddCharResult res = _t.AddChar(c);

            Assert.That(res.Status, Is.EqualTo(expectedStatus));
            if (expectedGrapheme == null)
            {
                Assert.That(res.Grapheme, Is.Null);
            }
            else
            {
                Assert.That(res.Grapheme, Is.EqualTo(expectedGrapheme));
            }
        }
Exemplo n.º 3
0
 internal AddCharResult(AddCharStatus status, string grapheme) : this()
 {
     Status   = status;
     Grapheme = grapheme;
 }
Exemplo n.º 4
0
 internal AddCharResult(AddCharStatus status, string grapheme)
     : this()
 {
     Status = status;
     Grapheme = grapheme;
 }