Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move files from base directory to /src directory #242

Merged
merged 1 commit into from
Jul 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 10 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
build_script:
- cmd: |
dotnet --info
msbuild /restore /p:Configuration=Release /p:version=%APPVEYOR_BUILD_VERSION% -verbosity:minimal DynamicData.sln
msbuild /restore /p:Configuration=Release /p:version=%APPVEYOR_BUILD_VERSION% -verbosity:minimal src/DynamicData.sln
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.nupkg

test: off
test_script:
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%
dotnet test DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build --no-restore
dotnet test DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build --no-restore
dotnet test src/DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build --no-restore
dotnet test src/DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build --no-restore

deploy:
- provider: NuGet
Expand Down Expand Up @@ -62,9 +62,9 @@
before_build:
- cmd: |
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
nuget restore DynamicData.sln
nuget restore src/DynamicData.sln
build:
project: DynamicData.sln
project: src/DynamicData.sln
publish_nuget: true
publish_nuget_symbols: true
include_nuget_references: true
Expand Down Expand Up @@ -113,14 +113,14 @@
build_script:
- cmd: |
dotnet --info
msbuild /restore /p:Configuration=Release /p:version=%APPVEYOR_BUILD_VERSION% -verbosity:minimal DynamicData.sln
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.nupkg
msbuild /restore /p:Configuration=Release /p:version=%APPVEYOR_BUILD_VERSION% -verbosity:minimal src/DynamicData.sln
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\src\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\src\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.nupkg

test: off
# Hangs indefinitely and I do not know why as the same command works locally
test_script:
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%
dotnet test DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build --no-restore
dotnet test DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build --no-restore
dotnet test src\DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build --no-restore
dotnet test src\DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build --no-restore
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
using System;
using System.Linq;
using DynamicData.Tests.Domain;
using FluentAssertions;
using Xunit;
namespace DynamicData.Tests.Cache
{
public class DeferAnsdSkipFixture
{
[Fact]
public void DeferUntilLoadedDoesNothingUntilDataHasBeenReceived()
{
bool updateReceived = false;
IChangeSet<Person, string> result = null;
var cache = new SourceCache<Person, string>(p => p.Name);
var deferStream = cache.Connect().DeferUntilLoaded()
.Subscribe(changes =>
{
updateReceived = true;
result = changes;
});
var person = new Person("Test", 1);
updateReceived.Should().BeFalse();
cache.AddOrUpdate(person);
updateReceived.Should().BeTrue();
result.Adds.Should().Be(1);
result.First().Current.Should().Be(person);
deferStream.Dispose();
}
[Fact]
public void SkipInitialDoesNotReturnTheFirstBatchOfData()
{
bool updateReceived = false;
var cache = new SourceCache<Person, string>(p => p.Name);
var deferStream = cache.Connect().SkipInitial()
.Subscribe(changes => updateReceived = true);
updateReceived.Should().BeFalse();
cache.AddOrUpdate(new Person("P1", 1));
updateReceived.Should().BeFalse();
cache.AddOrUpdate(new Person("P2", 2));
updateReceived.Should().BeTrue();
deferStream.Dispose();
}
}
}
using System;
using System.Linq;
using DynamicData.Tests.Domain;
using FluentAssertions;
using Xunit;

namespace DynamicData.Tests.Cache
{

public class DeferAnsdSkipFixture
{
[Fact]
public void DeferUntilLoadedDoesNothingUntilDataHasBeenReceived()
{
bool updateReceived = false;
IChangeSet<Person, string> result = null;

var cache = new SourceCache<Person, string>(p => p.Name);

var deferStream = cache.Connect().DeferUntilLoaded()
.Subscribe(changes =>
{
updateReceived = true;
result = changes;
});

var person = new Person("Test", 1);
updateReceived.Should().BeFalse();
cache.AddOrUpdate(person);

updateReceived.Should().BeTrue();
result.Adds.Should().Be(1);
result.First().Current.Should().Be(person);
deferStream.Dispose();
}

[Fact]
public void SkipInitialDoesNotReturnTheFirstBatchOfData()
{
bool updateReceived = false;

var cache = new SourceCache<Person, string>(p => p.Name);

var deferStream = cache.Connect().SkipInitial()
.Subscribe(changes => updateReceived = true);

updateReceived.Should().BeFalse();

cache.AddOrUpdate(new Person("P1", 1));

updateReceived.Should().BeFalse();

cache.AddOrUpdate(new Person("P2", 2));
updateReceived.Should().BeTrue();
deferStream.Dispose();
}
}
}
Loading