1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

🚨 Minor refactor in BooleanTests.cs

* const bool in Not()
* rename Xor() to XOr()
* conform XNOr() documentation
This commit is contained in:
Oliver Booth 2020-04-18 23:14:48 +01:00
parent 4461272f59
commit e7bf572d09
No known key found for this signature in database
GPG Key ID: 0D7F2EF1C8D2B9C0

View File

@ -46,8 +46,8 @@ namespace X10D.Tests
[TestMethod] [TestMethod]
public void Not() public void Not()
{ {
bool a = true; const bool a = true;
bool b = false; const bool b = false;
Assert.IsTrue(a); Assert.IsTrue(a);
Assert.IsFalse(b); Assert.IsFalse(b);
@ -98,10 +98,10 @@ namespace X10D.Tests
} }
/// <summary> /// <summary>
/// Tests for <see cref="BooleanExtensions.Xor"/>. /// Tests for <see cref="BooleanExtensions.XOr"/>.
/// </summary> /// </summary>
[TestMethod] [TestMethod]
public void Xor() public void XOr()
{ {
const bool a = true; const bool a = true;
const bool b = true; const bool b = true;
@ -161,7 +161,7 @@ namespace X10D.Tests
} }
/// <summary> /// <summary>
/// Tests for <see cref="BooleanExtensions.NOr"/>. /// Tests for <see cref="BooleanExtensions.XNOr"/>.
/// </summary> /// </summary>
[TestMethod] [TestMethod]
public void XNOr() public void XNOr()