Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Assignment3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWT
Assignments
Assignment3
Commits
4c3d2057
Commit
4c3d2057
authored
1 year ago
by
ClausBC
Browse files
Options
Downloads
Patches
Plain Diff
changed test
parent
64faa461
No related branches found
Branches containing commit
No related tags found
3 merge requests
!8
Merge Defrost to Main
,
!7
Mere Defrost to main
,
!3
Add details
Pipeline
#193559
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Microwave.Test.Unit/CookControllerTest.cs
+20
-0
20 additions, 0 deletions
Microwave.Test.Unit/CookControllerTest.cs
with
20 additions
and
0 deletions
Microwave.Test.Unit/CookControllerTest.cs
+
20
−
0
View file @
4c3d2057
using
System
;
using
System.Threading
;
using
Microwave.Classes.Controllers
;
using
Microwave.Classes.Interfaces
;
using
NSubstitute
;
using
NuGet.Frameworks
;
using
NUnit.Framework
;
using
NUnit.Framework.Internal.Commands
;
namespace
Microwave.Test.Unit
{
...
...
@@ -83,5 +86,22 @@ namespace Microwave.Test.Unit
powerTube
.
Received
().
TurnOff
();
}
[
Test
]
public
void
Cooking_Defrost_Enabled
()
{
uut
.
Defrost
(
700
);
powerTube
.
Received
(
700
);
}
[
Test
]
public
void
Cooking_Defrost_ToggleTest
()
{
uut
.
Defrost
(
700
);
uut
.
StartCooking
(
700
,
30
);
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment