This commit is contained in:
Tomasz Cielecki 2018-01-30 21:59:46 +01:00
Родитель 78965653ae
Коммит 74ab31b44b
6 изменённых файлов: 21 добавлений и 11 удалений

Просмотреть файл

@ -209,8 +209,7 @@ namespace MvvmCross.Binding.Test.Binders
private MvxSourceStepFactory SetupSourceStepFactory()
{
_fixture.Reset();
_fixture.InitializeSingletonCache();
_fixture.ClearAll();
var autoValueConverters = new MvxAutoValueConverters();
_fixture.Ioc.RegisterSingleton<IMvxAutoValueConverters>(autoValueConverters);

Просмотреть файл

@ -80,8 +80,7 @@ namespace MvvmCross.Binding.Test.Bindings
private void TestCommon(MvxBindingMode bindingMode, bool expectSourceBinding, bool expectTargetBinding)
{
_fixture.InitializeSingletonCache();
_fixture.Reset();
_fixture.ClearAll();
_fixture.Ioc.RegisterSingleton<IMvxMainThreadDispatcher>(new InlineMockMainThreadDispatcher());
var mockSourceBindingFactory = new Mock<IMvxSourceBindingFactory>();

Просмотреть файл

@ -8,7 +8,6 @@ using Xunit;
namespace MvvmCross.Binding.Test.Parse.Binding
{
[Collection("MvxTest")]
public abstract class MvxBindingTest : IClassFixture<MvxTestFixture>
{
public MvxBindingTest(MvxTestFixture fixture)

Просмотреть файл

@ -9,15 +9,20 @@ using System.Text;
using MvvmCross.Binding.Parse.Binding;
using MvvmCross.Binding.Parse.Binding.Swiss;
using MvvmCross.Platform.Logging;
using MvvmCross.Platform.Platform;
using MvvmCross.Test;
using Xunit;
namespace MvvmCross.Binding.Test.Parse.Binding.Swiss
{
public class MvxBaseSwissBindingTest<TParser>
public abstract class MvxBaseSwissBindingTest<TParser>
: MvxBindingTest
where TParser : MvxSwissBindingParser, new()
{
public MvxBaseSwissBindingTest(MvxTestFixture fixture) : base(fixture)
{
}
[Fact]
public void TestPathBinding()
{

Просмотреть файл

@ -5,15 +5,19 @@
using MvvmCross.Binding.Parse.Binding;
using MvvmCross.Binding.Parse.Binding.Swiss;
using MvvmCross.Platform.Logging;
using MvvmCross.Platform.Platform;
using MvvmCross.Test;
using Xunit;
namespace MvvmCross.Binding.Test.Parse.Binding.Swiss
{
[Collection("MvxTest")]
public class MvxSwissBindingTest
: MvxBaseSwissBindingTest<MvxSwissBindingParser>
{
public MvxSwissBindingTest(MvxTestFixture fixture) : base(fixture)
{
}
[Fact]
public void TestFunctionalValueConverterBinding()
{

Просмотреть файл

@ -6,15 +6,19 @@ using System.Collections.Generic;
using MvvmCross.Binding.Parse.Binding;
using MvvmCross.Binding.Parse.Binding.Tibet;
using MvvmCross.Platform.Logging;
using MvvmCross.Platform.Platform;
using MvvmCross.Test;
using Xunit;
namespace MvvmCross.Binding.Test.Parse.Binding.Swiss
{
[Collection("MvxTest")]
public class MvxTibetBindingTest
: MvxBaseSwissBindingTest<MvxTibetBindingParser>
{
public MvxTibetBindingTest(MvxTestFixture fixture) : base(fixture)
{
}
[Fact]
public void TestFunctionalValueConverterBinding()
{