public void WhenDecimalThenMatch() { var applier = new UseCurrencyForDecimalApplier(); applier.Match(ForClass <MyClass> .Property(mc => mc.Price)).Should().Be.True(); }
public void WhenNoDecimalThenNoMatch() { var applier = new UseCurrencyForDecimalApplier(); applier.Match(ForClass<MyClass>.Property(mc => mc.Value)).Should().Be.False(); }
public void WhenNoDecimalThenNoMatch() { var applier = new UseCurrencyForDecimalApplier(); applier.Match(ForClass <MyClass> .Property(mc => mc.Value)).Should().Be.False(); }
public void WhenDecimalThenMatch() { var applier = new UseCurrencyForDecimalApplier(); applier.Match(ForClass<MyClass>.Property(mc => mc.Price)).Should().Be.True(); }