By, Ben Dewey Senior Software Developer Tallan, Inc.

Slides:



Advertisements
Similar presentations
Unit testing in.Net. Copyright 2007 Tikal Knowledge, Ltd. | 2 | Agenda Introduction Visual Studio built-in support Open source frameworks Working together.
Advertisements

Timmy Kokke Silverlight / ASP.Net Developer UNIT4 Internet Solutions Expression Blend MVP.
What is Unit Testing? How TDD Works? Tsvyatko Konov Telerik Corporation
(Multi)? Touch with Windows Phone Ben Dewey Tallan, Inc.
Word Cards by Team 6 Problem: Learning new words and languages should be made accessible and enjoyable through the use of software – Enable learners to.
Microsoft Focus & Expertise We have a world-class team of Microsoft experts that can make any other platform integrate better with an existing enterprise.
 About Me: Eric Hexter  Director of Austin.Net User Group  AspInsiders  Organized the 2007 Austin Code Camp  Build websites and web applications since.
Visualizing Generalizations Rylan Cottrell. Generalization Contains common pieces from the original two source code fragments. Abstract the code fragments.
By, Ben Dewey Senior Software Developer twentySix New York
By, Ben Dewey Senior Software Developer Tallan, Inc
By, Ben Dewey Senior Software Developer twentySix New York
Unit testing C# classes “If it isn’t tested it doesn’t work” Unit testing C# classes1.
Building Modular Silverlight Applications with the Managed Extensibility Framework Ben Dewey twentysix New York
30 April 2014 Building Apps for Windows Phone 8.1 Jump Start WinRT Apps & Silverlight.
By Bob Bunson  Simulation of software development project  Fictitious system from Concept to Code  Oriented around the.
Recognizes: Magic Memo, show me memo number three. Magic Memo, show memo one. Magic Memo, display memo number two. Magic Memo, display memo.
Understanding Microsoft Project: Behind the Scenes Presented by Genea Mallow, PMP Director of Education, MPUG Senior Consultant, Milestone Consulting Group,
BDD with SpecFlow. Why BDD? 1. BDD helps build the right thing. Traditionally there are many handoffs - Requirements, development, component testing,
Windows Phone 8 Tips & Tricks for Developers Sascha Corti, Microsoft Switzerland Technical Evangelist | techpreacher.corti.com.
Testing Especially Unit Testing. V-model Wikipedia:
© ALEXANDRE CUVA  VERSION 2.00 Test Driven Design.
Test Driven Development Arrange, Act, Assert… Awesome Jason Offutt Software Engineer Central Christian Church
Unit Testing Building Rock-Solid Software SoftUni Team Technical Trainers Software University
The Racing Game of Knowledge Continue. Authored by Jeff Ertzberger University of North Carolina at Wilmington All rights reserved. All Clipart.
Designing software architectures to achieve quality attribute requirements F. Bachmann, L. Bass, M. Klein and C. Shelton IEE Proceedings Software Tzu-Chin.
1 + 1 becomes 11 what does our software promise?.

Chapter 8 Testing the Programs. Chapter 8 Learning Objectives Be able to …  Define different types of faults and how to classify them  Define the purpose.
Bowling Game Kata Object Mentor, Inc. fitnesse.org Copyright  2005 by Object Mentor, Inc All copies must retain this page unchanged.
Getting Images from TouchlessLib. Download, unzip.
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
Project Starfighter 2.0 Team 15. User Stories for 2.0 Part 1 As a user who destroys all enemy of type 1 I want the enemy type 2 to be displayed. As an.
Chris J.T. Auld – Director, Intergen
Unit Testing Building Rock-Solid Software Svetlin Nakov Technical Trainer Software University
30 April 2002 SingTel Group Submission Interconnection Charge Model for Internet Dial-Up Originating Access Model for Internet Dial Up Traffic (Dial-up.
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.
REM function that gets called when the network changes Private Sub OnNetworkChange (ByVal s As Object, _ ByVal a As EventArgs) REM Perform detection.
Unit Testing Silverlight & Windows Phone Applications Jeff Wilcox Senior Software Development Engineer Silverlight
David Starr Pluralsight Instructor ALM Consultant Visual Studio ALM MVP SESSION CODE: DPR302 Blog:
Building Rock-Solid Software
Test-driven development
TESTING TEST DRIVEN DEVELOPMENT
Automated UI Testing with Seleno.
Test Driven Development
Software Testing Software testing.
What’s New in the Lync Client SDK 9/8/2018 8:15 AM
How unit testing frameworks hurt your unit testing efforts
Unit Testing & Test-Driven Development for Mere Mortals
Unit testing C# classes
Unit Testing & Test-Driven Development for Mere Mortals
البرمجة بلغة الفيجول بيسك ستوديو
Barriers to Effective Communication
Unit Testing with xUnit.net-Part-2
Integrating Security Roles into Microsoft Silverlight Applications
Subtitle or catch phrase for the presentation
Subtitle or catch phrase for the presentation
MIX 09 12/8/2018 4:33 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Subtitle or catch phrase for the presentation
Test driving angularjs
Welcome to Azure Notebooks
Суури мэдлэг Basic Knowledge
Business Continuity Seminar
Unit 3 Review (Calculator)
Unit Testing for the Absolute Beginner
Navigation through Source Code
Chapter 13: Handling Events
Modified at -
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
Subtitle or catch phrase for the presentation
Presentation transcript:

By, Ben Dewey Senior Software Developer Tallan, Inc.

Assumptions Basic knowledge of Silverlight Unit Testing Nice to have knowledge of MSTest

Overview What is Testing/TDD Setting up the Silverlight Unit Testing Test Harness Basic Unit Test Asynchronous Unit Tests Questions

Preface Unit Testing (MSTest) [TestMethod] public void Can_AddNumbers() { // Arrange var calculator = new Calculator(); // Act var result = calculator.Add(1, 2); // Assert Assert.AreEqual(3, result); } Test Driven Design (TDD) Testing first and allowing your tests/requirements to drive your design

Original Unit Testing Framework

April 2010 Silverlight Toolkit

Setting up the Test Harness Add Project Silverlight Unit Testing Applications

Setting up the Test Harness Add References Microsoft.Silverlight.Testing Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight Modify App.xaml.cs private void Application_Startup(object sender, StartupEventArgs e) { RootVisual = UnitTestSystem.CreateTestPage(); }

Context

Asynchronous Unit Tests [TestClass] public class MainPageTests : SilverlightTest { [TestMethod, Asynchronous] public void Can_ShowHide_Windows() { // Arrange var controller = new GameController(); var mainPage = new MainPage(controller); this.TestPanel.Children.Add(mainPage); var startWindow = mainPage.FindName("StartWindow") as UIElement; var endWindow = mainPage.FindName("EndWindow") as UIElement; EnqueueDelay(500); EnqueueCallback(() => { // Act controller.ShowStartScreen = false; // Assert Assert.AreEqual(Visibility.Collapsed, startWindow.Visibility); Assert.AreEqual(Visibility.Collapsed, endWindow.Visibility); }); EnqueueDelay(500); EnqueueTestComplete(); } }

Links Jeff Wilcox – Creator of SUT

Microsoft Design Toolbox

By, Ben Dewey