public void Can_implicitly_create_by_assigning_to_string_and_vice_versa()
        {
            PipeDelimLower cd = "AB||cDeF||a";

            // the reason I assing CD to a strin[] below, is to avoid
            // fluentassertions testing the getEnumerator
            // ...we have a separate test for that below.
            // I want to test 1 thing at a time in a unit test.
            string[] cd2 = cd;
            cd2.Should().BeEquivalentTo(new[] { "ab", "", "cdef", "", "a" });
        }
        public void Tostring_returns_pipe_seperated()
        {
            PipeDelimLower cd = "12 3| aB  |  6";

            cd.ToString().Should().Be("12 3|ab|6");
        }
Beispiel #3
0
 public PipeLowerCat(PipeDelimLower kittens)
 {
     Kittens = kittens;
 }