Exemplo n.º 1
0
        public void LeftHelloDetected()
        {
            //Arrange
            Application application = Application.Launch(@"..\..\..\HelloKinectWPF\bin\Debug\HelloKinectWPF.exe");
            Window      window      = application.GetWindow("MainWindow", InitializeOption.NoCache);

            window.WaitWhileBusy();

            //Act
            var fileStream = new FileStream(RecordingPath, FileMode.Open);

            Kinect.ReplayStart(fileStream);
            Thread.Sleep(8000);

            //Assert
            var label = window.Get <TestStack.White.UIItems.Label>(SearchCriteria.ByAutomationId("Label"));

            Assert.That(label.Text == "Hello Kinect");

            fileStream.Close();
            application.Close();
        }