This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
290 additions
and
203 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Controls; | ||
using FluentAssertions; | ||
using NEdifis.Attributes; | ||
using NUnit.Framework; | ||
|
||
namespace NSuggest.WPF | ||
{ | ||
[TestFixtureFor(typeof(AutoCompleteManager))] | ||
// ReSharper disable InconsistentNaming | ||
internal class AutoCompleteManager_Should | ||
{ | ||
[Test] | ||
[Apartment(ApartmentState.STA)] | ||
public void Be_Creatable() | ||
{ | ||
0.Invoking(x => new AutoCompleteManager(null)).ShouldThrow<ArgumentNullException>(); | ||
|
||
Assert.Inconclusive("TODO"); | ||
|
||
var textBox = new TextBox(); | ||
var sut = new AutoCompleteManager(textBox); | ||
} | ||
} | ||
} |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="FluentAssertions" version="4.19.0" targetFramework="net452" /> | ||
<package id="GitVersionTask" version="3.6.5" targetFramework="net452" developmentDependency="true" /> | ||
<package id="NEdifis" version="0.7.0" targetFramework="net452" /> | ||
<package id="NSubstitute" version="2.0.2" targetFramework="net452" /> | ||
<package id="NUnit" version="3.6.1" targetFramework="net452" /> | ||
<package id="OneClickBuild" version="1.11.2" targetFramework="net452" developmentDependency="true" /> | ||
</packages> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Linq; | ||
using FluentAssertions; | ||
using NEdifis.Attributes; | ||
using NUnit.Framework; | ||
|
||
namespace NSuggest | ||
{ | ||
[TestFixtureFor(typeof(Cache<int, int>))] | ||
// ReSharper disable InconsistentNaming | ||
internal class Cache_Should | ||
{ | ||
[Test] | ||
public void Skip_lru_items() | ||
{ | ||
const int maxSize = 5; | ||
var sut = new Cache<int, int>(maxSize); | ||
Enumerable.Range(0, maxSize).ToList().ForEach(i => | ||
{ | ||
sut.Add(i, i); | ||
sut.ContainsKey(i).Should().BeTrue(); | ||
}); | ||
|
||
sut.Add(maxSize,maxSize); | ||
sut.ContainsKey(0).Should().BeFalse("lru item should be bumped from cache"); | ||
} | ||
} | ||
} |
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.