2015-12-26 22:44:43 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
|
|
|
|
|
namespace DSInternals.Common.Test
|
|
|
|
|
{
|
|
|
|
|
[TestClass]
|
|
|
|
|
public class ValidatorTester
|
|
|
|
|
{
|
2019-12-25 16:28:14 +00:00
|
|
|
|
// TODO: Implement more Validator tests.
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
|
[ExpectedException(typeof(ArgumentException))]
|
|
|
|
|
public void Validator_AssertEquals_NotEqualStrings()
|
|
|
|
|
{
|
|
|
|
|
Validator.AssertEquals("MIB1", "RSA2", "param");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
|
public void Validator_AssertEquals_EqualStrings()
|
|
|
|
|
{
|
|
|
|
|
Validator.AssertEquals("MIB1", "MIB1", "param");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
|
[ExpectedException(typeof(ArgumentException))]
|
|
|
|
|
public void Validator_AssertEquals_NotEqualChars()
|
|
|
|
|
{
|
|
|
|
|
Validator.AssertEquals('%', '/', "param");
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-26 22:44:43 +00:00
|
|
|
|
[TestMethod]
|
2019-12-25 16:28:14 +00:00
|
|
|
|
public void Validator_AssertEquals_EqualChars()
|
2015-12-26 22:44:43 +00:00
|
|
|
|
{
|
2019-12-25 16:28:14 +00:00
|
|
|
|
Validator.AssertEquals('%', '%', "param");
|
2015-12-26 22:44:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|