12 changed files with 61 additions and 25 deletions
@ -0,0 +1,34 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="SelectorTests.cs" company="Steven Kirk">
|
|||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
|
|||
namespace Perspex.UnitTests.Styling |
|||
{ |
|||
using System.Linq; |
|||
using System.Reactive.Linq; |
|||
using Microsoft.VisualStudio.TestTools.UnitTesting; |
|||
using Perspex.Styling; |
|||
|
|||
[TestClass] |
|||
public class SelectorTests_Template |
|||
{ |
|||
[TestMethod] |
|||
public void Foo() |
|||
{ |
|||
var control = new Control1 |
|||
{ |
|||
Classes = new Classes { "foo" }, |
|||
}; |
|||
|
|||
var target = control.Select().Class("foo"); |
|||
|
|||
CollectionAssert.AreEqual(new[] { true }, target.GetActivator().Take(1).ToEnumerable().ToArray()); |
|||
} |
|||
|
|||
public class Control1 : SubscribeCheck |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="ITemplatedControl.cs" company="Steven Kirk">
|
|||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
|
|||
namespace Perspex.Controls |
|||
{ |
|||
public interface ITemplatedControl |
|||
{ |
|||
} |
|||
} |
|||
Loading…
Reference in new issue