unit test
This commit is contained in:
18
OszthatUnitTest/UnitTest1.cs
Normal file
18
OszthatUnitTest/UnitTest1.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
|
||||
namespace OszthatUnitTest {
|
||||
[TestClass]
|
||||
public class UnitTest1 {
|
||||
[TestMethod, ExpectedException(typeof(FormatException))]
|
||||
public void setSzamTest() {
|
||||
Oszthat.Szam.setSzam();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void getSzamTest() {
|
||||
Oszthat.Szam.szam = 3;
|
||||
Oszthat.Szam.getSzam();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user