If the maximum value specified in the to argument of the NUnit's Range Attribute is beyond the limit of the test parameter type, the test will not work properly:
In NUnit 2.x, tests with out-of-the-bounds values will not be executed.
In NUnit 3.x the test will fail with the Out of range error.
[Test]publicvoidMyTest(// In NUnit 2.x the test will be executed with '255' but not with '256'[Range(0,256,5)]byte x){// do something}
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.