Fix binding tests
This commit is contained in:
Родитель
78965653ae
Коммит
74ab31b44b
|
@ -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()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче