using Xunit;

namespace Aoc2016.Day04
{
    public class Test
    {
        [Fact]
        public void Example1()
        {
            var code = new Code();
            code.Parse("aaaaa-bbb-z-y-x-123[abxyz]");
            code.Parse("a-b-c-d-e-f-g-h-987[abcde]");
            code.Parse("not-a-real-room-404[oarel]");
            code.Parse("totally-real-room-200[decoy]");
            Assert.Equal("1514", code.Result);
        }
    }
}