xamarin-macios/tests/monotouch-test/CoreAnimation/TransactionTest.cs

44 строки
1.0 KiB
C#
Исходник Обычный вид История

2016-05-26 16:06:52 +03:00
//
// Unit tests for CATransaction
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2012 Xamarin Inc. All rights reserved.
//
#if !__WATCHOS__
using System;
using CoreAnimation;
using Foundation;
using NUnit.Framework;
namespace MonoTouchFixtures.CoreAnimation {
[TestFixture]
[Preserve (AllMembers = true)]
public class TransactionTest {
[Test]
public void CompletionBlock_Null ()
{
// NULL is not specified in Apple doc but googling returns a lot of
// cases where stuff like "[self setCompletionBlock:nil];" is done
CATransaction.CompletionBlock = null;
Assert.NotNull (CATransaction.CompletionBlock, "CompletionBlock");
}
[Test]
public void AnimationTimingFunction_Null ()
{
// NULL is not specified in Apple doc
// but since it's the default value it makes sense to be able to set it back
CATransaction.AnimationTimingFunction = null;
Assert.Null (CATransaction.AnimationTimingFunction, "AnimationTimingFunction");
}
}
}
#endif // !__WATCHOS__