Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
34
Task/Test-a-function/C-sharp/test-a-function-1.cs
Normal file
34
Task/Test-a-function/C-sharp/test-a-function-1.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using PalindromeDetector.ConsoleApp;
|
||||
|
||||
namespace PalindromeDetector.VisualStudioTests
|
||||
{
|
||||
[TestClass]
|
||||
public class VSTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void PalindromeDetectorCanUnderstandPalindrome()
|
||||
{
|
||||
//Microsoft.VisualStudio.QualityTools.UnitTestFramework v4.0.30319
|
||||
bool expected = true;
|
||||
bool actual;
|
||||
actual = Program.IsPalindrome("1");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("1");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindrome("ingirumimusnocteetconsumimurigni");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("ingirumimusnocteetconsumimurigni");
|
||||
Assert.AreEqual(expected, actual);
|
||||
}
|
||||
[TestMethod]
|
||||
public void PalindromeDetecotryCanUnderstandNonPalindrome()
|
||||
{
|
||||
bool notExpected = true;
|
||||
bool actual = Program.IsPalindrome("ThisIsNotAPalindrome");
|
||||
Assert.AreNotEqual(notExpected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("ThisIsNotAPalindrome");
|
||||
Assert.AreNotEqual(notExpected, actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
35
Task/Test-a-function/C-sharp/test-a-function-2.cs
Normal file
35
Task/Test-a-function/C-sharp/test-a-function-2.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using NUnit.Framework;
|
||||
using PalindromeDetector.ConsoleApp;
|
||||
|
||||
namespace PalindromeDetector.VisualStudioTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class NunitTests
|
||||
{
|
||||
[Test]
|
||||
public void PalindromeDetectorCanUnderstandPalindrome()
|
||||
{
|
||||
//nunit.framework v2.0.50727
|
||||
bool expected = true;
|
||||
bool actual;
|
||||
actual = Program.IsPalindrome("1");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("1");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindrome("ingirumimusnocteetconsumimurigni");
|
||||
Assert.AreEqual(expected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("ingirumimusnocteetconsumimurigni");
|
||||
Assert.AreEqual(expected, actual);
|
||||
}
|
||||
[Test]
|
||||
public void PalindromeDetectorUnderstandsNonPalindrome()
|
||||
{
|
||||
bool notExpected = true;
|
||||
bool actual;
|
||||
actual = Program.IsPalindrome("NotAPalindrome");
|
||||
Assert.AreEqual(notExpected, actual);
|
||||
actual = Program.IsPalindromeNonRecursive("NotAPalindrome");
|
||||
Assert.AreEqual(notExpected, actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue