Ejemplo n.º 1
0
        public void should_contain_valid_BindableEnum()
        {
            var bindable = new BindableEnumCollection <IntegerEnum>();

            bindable.Count.ShouldBe(3);
            bindable.ShouldAllBe(x => x is BindableEnum);
            bindable.Select(x => x.DisplayName).SequenceEqual(new [] { "Int0", "Int1", "Int2" }).ShouldBeTrue();
            bindable.Select(x => x.UnderlyingValue).SequenceEqual(new [] { 0, 1, 2 }).ShouldBeTrue();
        }