Created
June 15, 2011 13:31
-
-
Save SzymonPobiega/1027094 to your computer and use it in GitHub Desktop.
Small internal DSL in unit tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void It_uses_more_specific_rule_if_rule_and_information_is_present() | |
{ | |
Given(new ProductType("air", null, ProductCategory.AirOnly), | |
new ProductType("air", "someSpecialWeirdProduct", ProductCategory.LandOnly)) | |
.ItMaps(new ProductReference("air", "someSpecialWeirdProduct")) | |
.To(ProductCategory.LandOnly); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment