Welcome to mirror list, hosted at ThFree Co, Russian Federation.

StringViewModelTests.cs « Xamarin.PropertyEditing.Tests - github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 083a77edf84554762f4da83ec90e671d2e1d3f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using NUnit.Framework;
using Xamarin.PropertyEditing.ViewModels;

namespace Xamarin.PropertyEditing.Tests
{
	[TestFixture]
	internal class StringViewModelTests
		: PropertyViewModelTests<string, StringPropertyViewModel>
	{
		protected override StringPropertyViewModel GetViewModel (TargetPlatform platform, IPropertyInfo property, IEnumerable<IObjectEditor> editors)
		{
			return new StringPropertyViewModel (platform, property, editors);
		}

		protected override string GetRandomTestValue (Random rand)
		{
			return rand.Next (Int32.MaxValue).ToString ();
		}
	}
}