https://www.youtube.com/watch?v=SOZNBmQDnyg&list=PLO56HZSjrPTB4NxAsEP8HRk6YKBDLbp7m&index=76
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
}
[TestMethod]
public void SelectionSortMethodTest()
{
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
// Assert.AreEqual(10, 10); // true
Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
Assert.AreEqual(10, 10); // true
// Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
Assert.AreEqual(10, 10); // true
// Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
// [1] Arrange(정렬), Setup
int[] arr = { 33, 22, 44 };
// [2] Act(동작), Execute
int[] result = DulAlgorithm.Algorithm.SelectionSort(arr);
// [3] Assert(어설션), Vertify
Assert.AreEuqal(11, result[0]); // true
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
Assert.AreEqual(10, 10); // true
// Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
// [1] Arrange(정렬), Setup
int[] arr = { 33, 22, 44 };
// [2] Act(동작), Execute
int[] result = DulAlgorithm.Algorithm.SelectionSort(arr);
// [3] Assert(어설션), Vertify
Assert.AreEuqal(22, result[0]); // true
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
Assert.AreEqual(10, 10); // true
// Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
// [1] Arrange(정렬), Setup
int[] arr = { 33, 22, 44 };
// [2] Act(동작), Execute
int[] result = DulAlgorithm.Algorithm.SelectionSort(arr);
// [3] Assert(어설션), Vertify
Assert.AreEuqal(22, result[0]); // true
Assert.AreEqual(33, result[result.Length - 1]);
}
}
}
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DulAlgorithm.Tests
{
[TestClass]
class AlgorithmClassTest
{
[TestMethod]
public void MyTestMethod()
{
Assert.AreEqual(10, 10); // true
// Assert.AreEqual(10, 100); // false
}
[TestMethod]
public void SelectionSort_ShouldReturnSortedArray()
{
// [1] Arrange(정렬), Setup
int[] arr = { 33, 22, 44 };
// [2] Act(동작), Execute
int[] result = DulAlgorithm.Algorithm.SelectionSort(arr);
// [3] Assert(어설션), Vertify
Assert.AreEuqal(22, result[0]); // true
Assert.AreEqual(44, result[result.Length - 1]);
}
}
}