Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 582cfdd

Browse files
author
Jérémie Bertrand
authored
Add a test for KeepScriptsSeparated default value
1 parent e6db679 commit 582cfdd

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/ScriptCs.ComponentModel.Composition.Test/ScriptCsCatalogOptionsFacts.cs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Moq;
1+
using Moq;
22
using ScriptCs.Contracts;
33
using Should;
44
using System;
@@ -120,8 +120,8 @@ public void ShouldNotOverridesValuedFileSystem()
120120
result.FileSystem.ShouldNotBeNull();
121121
result.FileSystem.ShouldEqual(fileSystemMock);
122122
}
123-
124-
123+
124+
125125
[Fact]
126126
public void ShouldNotOverridesValuedKeepScriptsSeparated()
127127
{
@@ -132,7 +132,21 @@ public void ShouldNotOverridesValuedKeepScriptsSeparated()
132132
var result = options.OverridesNullByDefault();
133133

134134
// assert
135-
result.KeepScriptsSeparated.ShouldEqual(true);
135+
result.KeepScriptsSeparated.ShouldBeTrue();
136+
}
137+
138+
}
139+
140+
public class DefaultValues
141+
{
142+
[Fact]
143+
public void KeepScriptsSeparatedShouldBeFalse()
144+
{
145+
// act
146+
var options = new ScriptCsCatalogOptions();
147+
148+
// assert
149+
options.KeepScriptsSeparated.ShouldBeFalse();
136150
}
137151
}
138152
}

0 commit comments

Comments
 (0)