NUnit.Framework.Assert.IsFalse(bool)

Here are the examples of the csharp api class NUnit.Framework.Assert.IsFalse(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

200 Examples 7

1. Example

View license
public LocalizedStringVariantResult ShouldNotHaveProperty(String property)
        {
            Assert.IsFalse(variant.HasProperty(property));
            return this;
        }

2. Example

View license
public LocalizedStringResult ShouldNotHaveProperty(String property)
        {
            Assert.IsFalse(str.HasProperty(property));
            return this;
        }

3. Example

Project: ultraviolet
Source File: SyntaxNodeResult.cs
View license
public SyntaxNodeResult<TNode> ShouldHaveNoDiagnostics()
        {
            var diagnostics = node.GetDiagnostics();
            Assert.IsFalse(diagnostics.Any());
            return this;
        }

4. Example

Project: ultraviolet
Source File: SyntaxNodeResult.cs
View license
public SyntaxNodeResult<TNode> ShouldHaveNoWarnings()
        {
            var warnings = node.GetDiagnostics().Where(x => x.Severity == DiagnosticSeverity.Warning);
            Assert.IsFalse(warnings.Any());
            return this;
        }

5. Example

Project: ultraviolet
Source File: SyntaxNodeResult.cs
View license
public SyntaxNodeResult<TNode> ShouldHaveNoErrors()
        {
            var errors = node.GetDiagnostics().Where(x => x.Severity == DiagnosticSeverity.Error);
            Assert.IsFalse(errors.Any());
            return this;
        }

6. Example

Project: Wish
Source File: ExtensionMethodsTests.cs
View license
[Test]
		public void NaNIsNotCloseToNaN()
		{
			Assert.IsFalse(double.NaN.IsClose(double.NaN));
		}

7. Example

Project: Wish
Source File: ExtensionMethodsTests.cs
View license
[Test]
		public void ZeroIsNotCloseToOne()
		{
			Assert.IsFalse(0.0.IsClose(1));
		}

8. Example

View license
[Test]
		public void InsertionImpossibleInsideReadOnlySegment()
		{
			segments.Add(new TextSegment { StartOffset = 10, EndOffset = 15 });
			Assert.IsFalse(provider.CanInsert(11));
			Assert.IsFalse(provider.CanInsert(12));
			Assert.IsFalse(provider.CanInsert(13));
			Assert.IsFalse(provider.CanInsert(14));
		}

9. Example

Project: PortalCMS
Source File: RoleServiceTests.cs
View license
[Test]
        public void Validate_Anonymous_NoAccessToLockedEntity()
        {
            var entityRoles = new List<Role> { new Role { RoleId = 1, RoleName = "Any Role" } };
            var userRoles = new List<Role>();

            var result = _roleService.Validate(entityRoles, userRoles);

            Assert.IsFalse(result);
        }

10. Example

Project: NFluent
Source File: NotRelatedTests.cs
View license
[Test]
        public void CheckContextWorks()
        {
            if (!CheckContext.DefaulNegated)
            {
               return;
            }
            CheckContext.DefaulNegated = false;
            try
            {
               Assert.IsFalse(CheckContext.DefaulNegated);
            }
            finally
            {
                CheckContext.DefaulNegated = true;
            }
        }

11. Example

Project: Snap
Source File: NinjectTests.cs
View license
[Test]
        public void Ninject_Container_Ignores_Types_Without_Decoration()
        {
            var container = new NinjectAspectContainer();

            SnapConfiguration.For(container).Configure(c =>
                                                           {
                                                               c.IncludeNamespace("SnapTests*");
                                                               c.Bind<HandleErrorInterceptor>().To<HandleErrorAttribute>
                                                                   ();
                                                           });

            container.Kernel.Bind<INotInterceptable>().To<NotInterceptable>();
            var code = container.Kernel.Get<INotInterceptable>();

            Assert.IsFalse(code.GetType().Name.Equals("INotInterceptableProxy"));
        }

12. Example

Project: Snap
Source File: StructureMapTests.cs
View license
[Test]
        public void Structuremap_Container_Ignores_Types_Without_Decoration()
        {
            SnapConfiguration.For<StructureMapAspectContainer>(c =>
            {
                c.IncludeNamespace("Snap.Tests*");
                c.Bind<FirstInterceptor>().To<FirstAttribute>();
            });

            ObjectFactory.Configure(c => c.For<INotInterceptable>().Use<NotInterceptable>());
            var code = ObjectFactory.GetInstance<INotInterceptable>();

            Assert.IsFalse(code.GetType().Name.Equals("INotInterceptableProxy"));
        }

13. Example

View license
[Test]
        [TestCase(@"
GUID Bans:
[#] [GUID] [Minutes left] [Reason]
----------------------------------------
0  d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill, destruction of equipment.Ban perm!
1  d0ee5caf1b8b6282349e79fb998c2ee2 perm destruction of equipment, TeamKill.Ban perm
2  d0ee5caf1b8b6282349e79fb998c2ee2 perm GameHack.Ban perm
3  d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill.Ban perm
4  d0ee5caf1b8b6282349e79fb9d98c2ee2 perm destruction of equipment.Ban perm
5  d0ee5caf1b8b6282349e79fb998c2ee2 perm Teamkill.Ban perm
6  d0ee5caf1b8b6282349e79fb98c2ee2 perm TeamKill.Ban perm
7  d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill.Ban perm
8  d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill.Ban perm
9  d0ee5caf1b8b6282349e79fb998c2ee2 perm destruction of equipment.Ban perm
10 d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill.Ban perm
11 d0ee5caf1b8b6282349e79fb998c2ee2 perm destruction of equipment.Ban perm
12 d0ee5caf1b8b6282349e79fb998c2ee2 perm Troll.Ban perm
")]
        public void List_NOT_CORECT_Test(string message)
        {
            var serverMessage = new ServerMessage(0, message);
            var recognizer = new BanListRecognizer();
            Assert.IsFalse(recognizer.CanRecognize(serverMessage));
        }

14. Example

View license
[Test]
        [TestCase("20w  d0ee5caf1b8b6282349e79fb998c2ee2 perm TeamKill.Ban perm")]
        [TestCase("4  GU")]
        [TestCase("5d  d0ee5caf1b8b6282349e79fb998c2ee2 perm Cheater(Ban PERM)")]
        public void Line_Not_Correct_Test(string line)
        {
            var recognizer = new BanListRecognizer();
            Assert.IsFalse(recognizer.CanRecognizeLine(line));
        }

15. Example

View license
[Test]
        [TestCase("0 94.181..44.100:50960")]
        [TestCase("1s 213.21.12.135:54678")]
        public void Line_Not_Correct_Test(string line)
        {
            var recognizer = new AdminListRecognizer();
            Assert.IsFalse(recognizer.CanRecognizeLine(line));
        }

16. Example

View license
[Test]
        [TestCase(@"
Players on server:
[#] [IP Address]:[Port] [Ping] [GUID] [Name]
--------/n ..... /n //View Source file for more details /n }

17. Example

View license
[Test]
        [TestCase("0s   5.141.88.80:59558     31   d0ee5caf1b8b6282349e79fb998c2ee2(OK) hobot")]
        [TestCase("5   62..12.2.208.170:2304   16   d0ee5caf1b8b6282349e79fb998c2ee2(OK) Ranger  (Lobby)")]
        [TestCase("10  188.244.37.117:2304   1d5   d0ee5caf1b8b6282349e79fb998c2ee2(OK) ????177")]
        public void Line_Not_Correct_Test(string line)
        {
            var recognizer = new PlayerListRecognizer();
            Assert.IsFalse(recognizer.CanRecognizeLine(line));
        }

18. Example

View license
[Test]
        [TestCase(@"Connected RCon admins:
[#] [IP Address]:[Port]
-----------------------------
0 94.181.44.1s00:50960
1 213.21.12.135:54678")]
        [TestCase(@"Connected RCon admins:
[#] [IP Address]:[Port]
-----------------------------
0 94.181.44.10
")]
        public void List_NOT_CORECT_Test(string message)
        {
            var serverMessage = new ServerMessage(0, message);
            var recognizer = new AdminListRecognizer();
            Assert.IsFalse(recognizer.CanRecognize(serverMessage));
        }

19. Example

View license
[Test]
        public void TestEmpty()
        {
            var dictionary = new ConcurrentMultiValueDictionary<int, string>();
            String value;
            Assert.IsFalse(dictionary.TryDequeue(1, out value));
        }

20. Example

Project: Umbraco-CMS
Source File: BaseContentTreeTests.cs
View license
[Test]
        public void Not_Optimized_Overriden_Method()
        {
            var tree = new MyNotOptimizedContentTree("content");

            Assert.IsFalse(tree.UseOptimizedRendering);
        }

21. Example

View license
[Test]
        public void Should_Not_Persist_Values_When_Saving_After_Publishing_But_No_Data_Changed()
        {
            var contentType = MockedContentTypes.CreateTextpageContentType();
            var content = MockedContent.CreateTextpageContent(contentType, "Textpage", -1);

            content.ResetDirtyProperties(false);
            content.ChangePublishedState(PublishedState.Published);
            content.ResetDirtyProperties(false);

            content.ChangePublishedState(PublishedState.Saved);
            Assert.IsFalse(content.RequiresSaving());
        }

22. Example

Project: Umbraco-CMS
Source File: ResolutionTests.cs
View license
[Test]
        public void ResolutionCanReset()
        {
            Resolution.Freeze();
            Resolution.Reset();
            Assert.IsFalse(Resolution.IsFrozen);
        }

23. Example

View license
[Test]
        public void Should_Not_Create_New_Version_When_Not_Published_And_Property_Changed()
        {
            var contentType = MockedContentTypes.CreateTextpageContentType();
            var content = MockedContent.CreateTextpageContent(contentType, "Textpage", -1);

            content.ResetDirtyProperties(false);

            content.Properties.First().Value = "hello world";
            Assert.IsFalse(content.ShouldCreateNewVersion(PublishedState.Unpublished));
        }

24. Example

Project: Umbraco-CMS
Source File: BaseMediaTreeTests.cs
View license
[Test]
        public void Not_Optimized_Events_BeforeRender()
        {
            var tree = new MyOptimizedMediaTree("media");

            BaseTree.BeforeTreeRender += EventHandler;

            Assert.IsFalse(tree.UseOptimizedRendering);
        }

25. Example

Project: Umbraco-CMS
Source File: UserServiceTests.cs
View license
[Test]
        public void Can_Remove_Section_From_All_Assigned_UserGroups()
        {
            var userGroup1 = new UserGroup
            {
                Alias = "Group1",
                Name = "Group 1"
            };
            var userGroup2 = new UserGroup
            {
                Alias = "Group2",
                Name = "Group 2"
            };
            ServiceContext.UserService.Save(userGroup1);
            ServiceContext.UserService.Save(userGroup2);

            //adds some allowed sections
            userGroup1.AddAllowedSection("test");
            userGroup2.AddAllowedSection("test");
            ServiceContext.UserService.Save(userGroup1);
            ServiceContext.UserService.Save(userGroup2);

            //now clear the section from all users
            ServiceContext.UserService.DeleteSectionFromAllUserGroups("test");

            //assert
            var result1 = ServiceContext.UserService.GetUserGroupById(userGroup1.Id);
            var result2 = ServiceContext.UserService.GetUserGroupById(userGroup2.Id);
            Assert.IsFalse(result1.AllowedSections.Contains("test"));
            Assert.IsFalse(result2.AllowedSections.Contains("test"));
        }

26. Example

View license
[Test]
        public void Member_Cannot_View_Property()
        {
            IMemberType memberType = MockedContentTypes.CreateSimpleMemberType();
            ServiceContext.MemberTypeService.Save(memberType);
            //re-get
            memberType = ServiceContext.MemberTypeService.Get(memberType.Id);
            foreach (var p in memberType.PropertyTypes)
            {
                Assert.IsFalse(memberType.MemberCanViewProperty(p.Alias));
            }
        }

27. Example

View license
[Test]
        public void Should_Not_Clear_Published_Flag_When_Unpublishing_From_Saved()
        {
            var contentType = MockedContentTypes.CreateTextpageContentType();
            var content = MockedContent.CreateTextpageContent(contentType, "Textpage", -1);

            content.ResetDirtyProperties(false);
            content.ChangePublishedState(PublishedState.Saved);
            content.ResetDirtyProperties(false);

            content.ChangePublishedState(PublishedState.Unpublished);
            Assert.IsFalse(content.ShouldClearPublishedFlagForPreviousVersions());
        }

28. Example

View license
[Test]
        public void Member_Cannot_Edit_Property()
        {
            IMemberType memberType = MockedContentTypes.CreateSimpleMemberType();
            ServiceContext.MemberTypeService.Save(memberType);
            //re-get
            memberType = ServiceContext.MemberTypeService.Get(memberType.Id);
            foreach (var p in memberType.PropertyTypes)
            {
                Assert.IsFalse(memberType.MemberCanEditProperty(p.Alias));
            }
        }

29. Example

View license
[Test]
        public void Should_Not_Create_New_Version_When_Published_Status_Not_Changed()
        {
            var contentType = MockedContentTypes.CreateTextpageContentType();
            var content = MockedContent.CreateTextpageContent(contentType, "Textpage", -1);

            content.ResetDirtyProperties(false);

            Assert.IsFalse(content.ShouldCreateNewVersion(PublishedState.Unpublished));
        }

30. Example

View license
[Test]
        public void Create_IsNotRunning()
        {
            using (var runner = new BackgroundTaskRunner<IBackgroundTask>(new BackgroundTaskRunnerOptions(), _logger))
            {
                Assert.IsFalse(runner.IsRunning);
            }
        }

31. Example

Project: Umbraco-CMS
Source File: BaseMediaTreeTests.cs
View license
[Test]
        public void Not_Optimized_Events_AfterRender()
        {
            var tree = new MyOptimizedMediaTree("media");

            BaseTree.AfterTreeRender += EventHandler;

            Assert.IsFalse(tree.UseOptimizedRendering);
        }

32. Example

Project: Umbraco-CMS
Source File: BulkDataReaderTests.cs
View license
[Test]
        public void NextResultTest()
        {
            using (BulkDataReaderSubclass testReader = new BulkDataReaderSubclass())
            {
                Assert.IsFalse(testReader.NextResult());
            }
        }

33. Example

View license
[Test]
        public void Should_Not_Clear_Published_Flag_When_Saving_Version()
        {
            var contentType = MockedContentTypes.CreateTextpageContentType();
            var content = MockedContent.CreateTextpageContent(contentType, "Textpage", -1);

            content.ResetDirtyProperties(false);
            content.ChangePublishedState(PublishedState.Published);
            content.ResetDirtyProperties(false);

            content.ChangePublishedState(PublishedState.Saved);
            Assert.IsFalse(content.ShouldClearPublishedFlagForPreviousVersions());
        }

34. Example

Project: Umbraco-CMS
Source File: GlobalSettingsTests.cs
View license
[TestCase("/umbraco_client/Tree/treeIcons.css")]
		[TestCase("/umbraco_client/Tree/Themes/umbraco/style.css")]
		[TestCase("/umbraco_client/scrollingmenu/style.css")]		
		[TestCase("/base/somebasehandler")]
		[TestCase("/")]
		[TestCase("/home.aspx")]
		[TestCase("/umbraco-test")]
		[TestCase("/install-test")]
		[TestCase("/install.aspx")]
		public void Is_Not_Reserved_Path_Or_Url(string url)
		{
			Assert.IsFalse(Umbraco.Core.Configuration.GlobalSettings.IsReservedPathOrUrl(url));
		}

35. Example

Project: Umbraco-CMS
Source File: BaseContentTreeTests.cs
View license
[Test]
        public void Not_Optimized_Events_BeforeRender()
        {
            var tree = new MyOptimizedContentTree1("content");

            BaseTree.BeforeTreeRender += EventHandler;

            Assert.IsFalse(tree.UseOptimizedRendering);
        }

36. Example

Project: Umbraco-CMS
Source File: BaseContentTreeTests.cs
View license
[Test]
        public void Not_Optimized_Events_AfterRender()
        {
            var tree = new MyOptimizedContentTree1("content");

            BaseTree.AfterTreeRender += EventHandler;

            Assert.IsFalse(tree.UseOptimizedRendering);
        }

37. Example

View license
[Test]
        public void PackagesRootAndSubfoldersAreInvalid()
        {
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(ProjectRoot + "\\Packages", false));
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(ProjectRoot + "\\Packages\\Subfolder", false));
        }

38. Example

View license
[Test]
        public void NullIsInvalid()
        {
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(null, false));
        }

39. Example

View license
[Test]
        public void ProjectSettingsRootAndSubFoldersAreInvalid()
        {
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(ProjectRoot + "\\ProjectSettings", false));
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(ProjectRoot + "\\ProjectSettings\\Subfolder", false));
        }

40. Example

View license
[Test]
        public void EmptyIsInvalid()
        {
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder("", false));
        }

41. Example

View license
[Test]
        public void ProjectRootIsInvalid()
        {
            Assert.IsFalse(BuildPathValidator.ValidOutputFolder(ProjectRoot, false));
        }

42. Example

Project: SimpleAnimation
Source File: StateAccessTests.cs
View license
[Test]
        public void State_Enabled_False_IsPlaying_ReturnsFalse([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
            var clip = Resources.Load<AnimationClip>("LinearX");
            var clipInstance = Object.Instantiate<AnimationClip>(clip);
            clipInstance.legacy = animation.usesLegacy;

            animation.AddClip(clipInstance, "ValidName");
            IAnimationState state = animation.GetState("ValidName");
            animation.Play(state.name);
            state.enabled = false;
            Assert.IsFalse(animation.isPlaying);
            Assert.IsFalse(animation.IsPlaying(state.name));
        }

43. Example

View license
[Test]
        public void RemoveClip_Invalidates_ExistingState([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
            var clip = Resources.Load<AnimationClip>("LinearX");
            var clipInstance = Object.Instantiate<AnimationClip>(clip);
            clipInstance.legacy = animation.usesLegacy;

            animation.AddClip(clipInstance, clipInstance.name);
            IAnimationState state = animation.GetState(clipInstance.name);
            animation.RemoveClip(clipInstance);
            Assert.IsFalse(state.isValid);
        }

44. Example

Project: SimpleAnimation
Source File: PlaybackTests.cs
View license
[UnityTest]
        public IEnumerator Stop_ValidName_NotPlaying_IsPlaying_ReturnsFalse([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);

            var clipX = Resources.Load<AnimationClip>("LinearX");
            var clipInstanceX = Object.Instantiate<AnimationClip>(clipX);
            clipInstanceX.legacy = animation.usesLegacy;
            animation.AddClip(clipInstanceX, "ValidName");

            yield return null;

            animation.Stop("ValidName");
            Assert.IsFalse(animation.IsPlaying("ValidName"));
        }

45. Example

Project: SimpleAnimation
Source File: PlaybackTests.cs
View license
[UnityTest]
        public IEnumerator CrossfadeQueue_WithClipPlaying_IsStatePlaying_ReturnsFalse([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
            var clipX = Resources.Load<AnimationClip>("LinearX");
            var clipY = Resources.Load<AnimationClip>("LinearY");
            var clipInstanceX = Object.Instantiate<AnimationClip>(clipX);
            var clipInstanceY = Object.Instantiate<AnimationClip>(clipY);
            clipInstanceX.legacy = animation.usesLegacy;
            clipInstanceY.legacy = animation.usesLegacy;

            animation.AddClip(clipInstanceY, "ToPlay");
            animation.AddClip(clipInstanceX, "ToCrossfade");
            animation.Play("ToPlay");
            animation.CrossFadeQueued("ToCrossfade", 0.5f, QueueMode.CompleteOthers);
            yield return null;

            Assert.IsFalse(animation.IsPlaying("ToCrossfade"));
        }

46. Example

Project: SimpleAnimation
Source File: QueueTests.cs
View license
[UnityTest]
    public IEnumerator Queue_Stop_Clip_StopsQueuedClip([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
    {
        IAnimation animation = ComparativeTestFixture.Instantiate(type);
        var clip = Resources.Load<AnimationClip>("LinearX");
        var clipInstance = Object.Instantiate<AnimationClip>(clip);
        clipInstance.legacy = animation.usesLegacy;

        animation.AddClip(clipInstance, "PlayAndQueue");
        animation.Play("PlayAndQueue");
        animation.PlayQueued("PlayAndQueue", QueueMode.CompleteOthers);
        yield return null;
        animation.Stop("PlayAndQueue");
        Assert.IsFalse(animation.isPlaying);
        yield return null;
        //Queued animation would have started if it was going to.
        Assert.IsFalse(animation.isPlaying);
    }

47. Example

Project: SimpleAnimation
Source File: PlaybackTests.cs
View license
[UnityTest]
        public IEnumerator Stop_ValidName_Playing_IsPlaying_ReturnsFalse([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
            var clipX = Resources.Load<AnimationClip>("LinearX");
            var clipInstanceX = Object.Instantiate<AnimationClip>(clipX);
            clipInstanceX.legacy = animation.usesLegacy;
            animation.AddClip(clipInstanceX, "ValidName");
            animation.Play("ValidName");

            yield return null;

            animation.Stop("ValidName");
            Assert.IsFalse(animation.IsPlaying("ValidName"));
        }

48. Example

Project: SimpleAnimation
Source File: QueueTests.cs
View license
[UnityTest]
    public IEnumerator Queue_Looped_Clips_Block_QueuedAnimations([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
    {
        IAnimation animation = ComparativeTestFixture.Instantiate(type);
        var clip = Resources.Load<AnimationClip>("LinearX");
        var clipInstance = Object.Instantiate<AnimationClip>(clip);
        clipInstance.legacy = animation.usesLegacy;
        clipInstance.wrapMode = WrapMode.Loop;

        animation.AddClip(clipInstance, "Play");
        animation.AddClip(clipInstance, "Queued");
        animation.Play("Play");
        animation.PlayQueued("Queued", QueueMode.CompleteOthers);
        yield return new WaitForSeconds(1.1f);
        Assert.IsFalse(animation.IsPlaying("Queued"));
    }

49. Example

Project: SimpleAnimation
Source File: StateAccessTests.cs
View license
[Test]
        public void State_Enabled_InitialValue_False([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
            var clip = Resources.Load<AnimationClip>("LinearX");
            var clipInstance = Object.Instantiate<AnimationClip>(clip);
            clipInstance.legacy = animation.usesLegacy;

            animation.AddClip(clipInstance, "ValidName");
            IAnimationState state = animation.GetState("ValidName");
            Assert.IsFalse(state.enabled);
        }

50. Example

Project: SimpleAnimation
Source File: PlaybackTests.cs
View license
[UnityTest]
        public IEnumerator PlayQueue_WithClipPlaying_IsStatePlaying_ReturnsFalse([ValueSource(typeof(ComparativeTestFixture), "Sources")]System.Type type)
        {
            IAnimation animation = ComparativeTestFixture.Instantiate(type);
			var clip = Resources.Load<AnimationClip>("LinearX");
			var clipInstance = Object.Instantiate<AnimationClip>(clip);
			clipInstance.legacy = animation.usesLegacy;

			animation.AddClip(clipInstance, "ToPlay");
			animation.AddClip(clipInstance, "ToPlayQueue");
			animation.Play("ToPlay");
			animation.PlayQueued("ToPlayQueue", QueueMode.CompleteOthers);

			Assert.IsFalse(animation.IsPlaying("ToPlayQueue"));

			yield return null;
        }