-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fügt die Datei mit dem eigentlichen Unittest hinzu. Diese fehlte im C…
…ommit #a3afad23
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Taschenrechner; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Taschenrechner.Tests | ||
{ | ||
[TestClass()] | ||
public class RechnerModelTests | ||
{ | ||
[TestMethod()] | ||
public void Berechne_DivisionDurchNull_ErgibtUnendlich() | ||
{ | ||
RechnerModel model = new RechnerModel(); | ||
|
||
model.Operation = "/"; | ||
model.ErsteZahl = 10; | ||
model.ZweiteZahl = 0; | ||
|
||
model.Berechne(); | ||
|
||
Assert.AreEqual(Double.PositiveInfinity, model.Resultat); | ||
} | ||
} | ||
} |
12143c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die weiteren Dateien die für das Projekt
TaschenrechnerTests
benötigt werden, findest du in diesem Commit.