-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from mariotoffia/feature-deleteif-exist
Feature DeleteIfExists on ContainerBuilder
- Loading branch information
Showing
26 changed files
with
818 additions
and
12 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
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
22 changes: 22 additions & 0 deletions
22
Ductus.FluentDocker.Tests/Model/Containers/ContainerTests.cs
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,22 @@ | ||
using Ductus.FluentDocker.Model.Common; | ||
using Ductus.FluentDocker.Extensions; | ||
using Ductus.FluentDocker.Model.Containers; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Newtonsoft.Json; | ||
|
||
namespace Ductus.FluentDocker.Tests.Model.Containers | ||
{ | ||
[TestClass] | ||
public class ContainerTests | ||
{ | ||
[TestMethod] | ||
public void TestWithNoCreated() | ||
{ | ||
var data = ((TemplateString)"Model/Containers/inspect_no_create.json").FromFile(); | ||
var obj = JsonConvert.DeserializeObject<Container>(data); | ||
|
||
Assert.AreEqual(obj.Created, default(System.DateTime)); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.