/// <summary>
/// This class performs an important function.
/// </summary>
// Declare a delegate:
delegate void Del(int x);
#region Additional test attributes | |
// | |
// You can use the following additional attributes as you write your tests: | |
// | |
// Use ClassInitialize to run code before running the first test in the class | |
// [ClassInitialize()] | |
// public static void MyClassInitialize(TestContext testContext) { } | |
// | |
// Use ClassCleanup to run code after all tests in a class have run | |
// [ClassCleanup()] |
// | |
var emptyResult = await this.controller.Get("", 3000) as BadRequestErrorMessageResult; | |
var nullResult = await this.controller.Get(null, 300) as BadRequestErrorMessageResult; | |
// Assert | |
emptyResult.Should().NotBeNull(); | |
nullResult.Should().NotBeNull(); |
[TestMethod] | |
[TestCategory(TestCategory.Gated)] | |
public void Will_throw_exception_on_invalid_branch_unit_code() | |
{ | |
//Act | |
Action moreDigits=() => | |
{ | |
var result = _legalUnitStrategy.Transform("L9010"); |