Exemplo n.º 1
0
    public void WithName()
    {
        /* Given */
        Directive original = "@a(x: 100, y: 100)";

        /* When */
        var modified = original
                       .WithName("b");

        /* Then */
        Assert.Equal("a", original.Name);
        Assert.Equal("b", modified.Name);
    }