public void EntityWithOnePropertyStyle_ReturnsTwoStyles() { var resolver = new AttributeFileStyleResolver(); var result = resolver.Resolve <EntityWithOnePropertyStyle>((x) => x.FileName); Assert.Equal(2, result.Count()); Assert.Equal(result.First().Name, "regular"); Assert.Equal(result.Last().Name, FilehookConsts.OriginalStyleName); }
public void EntityWithDuplicatingStyle_ReturnsArgumentException() { var resolver = new AttributeFileStyleResolver(); Assert.Throws(typeof(ArgumentException), () => resolver.Resolve <EntityWithDuplicatingStyleName>((x) => x.FileName)); }