-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
81 changed files
with
1,416 additions
and
659 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
using FluentAssertions; | ||
using Gldf.Net.Domain.Definition; | ||
using Gldf.Net.Domain.Definition.Types; | ||
using Gldf.Net.Domain.Product.Types; | ||
using NUnit.Framework; | ||
|
||
namespace Gldf.Net.Tests.DomainTests | ||
{ | ||
[TestFixture] | ||
public class EmitterTests | ||
{ | ||
[Test] | ||
public void GetLightEmitters_Should_Return_Expected() | ||
{ | ||
var possibleFittings = new EmitterBase[] { new LightEmitter(), new LightEmitter() }; | ||
var emitter = new Emitter { PossibleFittings = possibleFittings }; | ||
|
||
var lightEmitters = emitter.GetLightEmitters(); | ||
|
||
lightEmitters.Should().BeEquivalentTo(possibleFittings); | ||
} | ||
|
||
[Test] | ||
public void GetSensorEmitters_Should_Return_Expected() | ||
{ | ||
var possibleFittings = new EmitterBase[] { new SensorEmitter(), new SensorEmitter() }; | ||
var emitter = new Emitter { PossibleFittings = possibleFittings }; | ||
|
||
var sensorEmitters = emitter.GetSensorEmitters(); | ||
|
||
sensorEmitters.Should().BeEquivalentTo(possibleFittings); | ||
} | ||
} | ||
} |
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
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
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithHeaderMandatory.gldf
Binary file not shown.
Binary file modified
BIN
+16 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithInvalidRoot.gldf
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithLargeFiles.gldf
Binary file not shown.
Binary file modified
BIN
+19 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithMissingFiles.gldf
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithNoFiles.gldf
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithOrphanedFiles.gldf
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
src/Gldf.Net.Tests/TestData/Container/GldfWithSignature.gldf
Binary file not shown.
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
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
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
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
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
Oops, something went wrong.