Skip to content

Commit

Permalink
Move files from base directory to /src directory (#242)
Browse files Browse the repository at this point in the history
This will help with azure devops compiling and the build recipe
  • Loading branch information
glennawatson authored and RolandPheasant committed Jul 9, 2019
1 parent 7e418d7 commit c0d4fb1
Show file tree
Hide file tree
Showing 491 changed files with 5,686 additions and 5,686 deletions.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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();
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c0d4fb1

Please sign in to comment.