Check C Unit Testing



Basics of unit testing. The Article on How to Use Mock Library For Your Unit Testing In C# is very informative. Since you want a unit test and not an integration test, it should not call a real http endpoint. So how do we organize unit tests with Boost. 4 Unit Root Time Series Tests This section provides two functions for unit root testing of financial time series, the ADF tests based on Banerjee’s et al. This documentation comprises these three parts: Why do we need yet another C++ Test Framework? Tutorial - getting started. Automation for C and C++ Unit Testing. As I said in the beginning, your files have to be properly prepared before NUnit will test them. Net Core projects and I've published quite a long script to achieve that. Assuming your familiarity with Unit Testing In this article, I assume you are familiar with unit testing. The development style will be "test a little, code a little", with unit test writing preceding coding. Hey guys I did use answers for lesson 12 operations with fractions unit test math seven a unit for operations with fractions and rational numbers but they were incorrect for that for the operations with fractions unit test so I’m going to help the people that are wanting the answers to lesson 12 operations with fractions unit test math 70 unit for operations with fractions and rational. It should be coded as a procedure in a codeunit of Test subtype. The Solution. a One of his symptoms was a high temperature. Unit Test Check-List When writing Unit Test(s) the following points must be considered and followed by the developers and SDETs. This page describes best practices and tools for writing unit tests for your functions, such as tests that would be a part of a Continuous Integration (CI) system. Compile all three and link them together. This one appears straight-forward because the unit test simply instantiates the template under test with a mock type. In contrast to other Unit-testing frameworks, Catch does not offer the usual selection of assert macros but manages to get away with basically just 2 kinds: REQUIRE and CHECK. Dhaka University KA Unit Admission Test Result. It’s still useful to figure out which units we can structure our code into and to build unit tests accordingly. PIO Unit Testing¶ PIO Unit Testing allows segregating each part of the firmware/program and testing that the individual parts are working correctly. Let's all try the Unit C - Test found on Socrative:. 0 it is much more easier. Indicated Power IC Engine Testing It is the power developed in the cylinder and thus, forms the basis of evaluation of combustion efficiency or the heat release in the cylinder. Catch is a unit testing framework that has some interesting (better!) ways to write tests for C and C++. For an introduction to iOS programming, see my latest lynda. The coolant temperature information is conveyed to the instrument panel, through the PCM, from the Engine Coolant Temperature (ECT) gauge sending unit. Testing is an essential aspect of any programming language. This is part of what makes them so important. The domain of both. NET languages. Unit tests should be minimal to write, and that was Boost Test weakest point in 2004, but Boost 1. UNIT Testing is defined as a type of software testing where individual units/ components of a software are tested. Google Test is not header-only. It works with any test runner and unit. In my experience, unit tests are not an effective way to find bugs or detect regressions. They are also quick to run, and can be run against a subset of an API for ad-hoc verification of behavior. Hope it can help. Thanks for giving this interesting information on using Unit testing to check our code. It is distributed on npm as firebase-functions-test, and is a companion test SDK to firebase. There is a default way to run tests by simply running a regular executable in CLion. QUnit follows the Node Long-term Support (LTS) Schedule. In the setup() method, aren’t you missing a call to instantiate the mockAppender just before the addAppender() call?. The objective of Unit Testing is to isolate a section of code and verify its correctness. NET Framework. I regularly check out the unit tests *first* to understand how I should use something. This one appears straight-forward because the unit test simply instantiates the template under test with a mock type. Unit Testing. One such method is using the BizUnit Framework which is predominantly used for the Biz Unit testing. The goal is no false positives. Unit testing means writing code that verifies individual parts, or units, of an application or. Or you could post it in the WPF forum for better support, and check whether we could create unit tests for your specific WPF app. They also check the functionality does not change when other parts of the application change. Turnitin solutions promote academic integrity, streamline grading and feedback, deter plagiarism, and improve student outcomes. Much of the code it contains actually tests modules written in C, which is near enough to C++ for our purposes. Use visualization and other tools available in MATLAB to understand how your code is behaving. Depending on how many standard library functions your runtime has, you may or not be able to use one of those. hpp instead of boost/test/unit_test. We can benefit a lot from Kotlin's powerful language features to write readable and concise unit tests. You decide to mock out your dependency on HttpClient, and soon thereafter you got stuck. Override the method runTest(). Check that the test passes (and maybe refactor, re-test). The objective of Unit Testing is to isolate a section of code and verify its correctness. If write unit tests against a database, we're not really testing anything in isolation since the database is made of multiple. detecting running under UNIT TEST. The pioneers of software development in that era were proponents of various levels of testing; some advocated “unit” testing and some didn’t, but all recognized the importance of. This tutorial will use the JUnit Test Infected article as a starting point. Catch2 is a multi-paradigm test framework for C++. A unit test verifies that a function or set of functions "honors its contract" - in other words, that the function(s) under test meet the requirements. exe --dist_tc=5. It's my first and I'm not sure I'm doing this right. Catch2 is a multi-paradigm test framework for C++. And forget test runners and frameworks for now. For example, we now fully support Jest. If you write your tests such that unimplemented code will fail, then you can check out implementation successes as your tests start to succeed. The only thing that have not yet discovered what to do is to check the StatusCode like used to be able to. It works with any test runner and unit. How to Compare Object Instances in your Unit Tests Quickly and Easily. To activate this mode, add the following line to your analysis configuration file:. Testing for ASP. I have some code where the purpose is the decide if a char is between quotes in an expression. Some assertion might be tested in the mock class. Unit Testing can be an amazing driver of quality or an expensive epic fail. The unit test framework for C or C++ popular amongst developers is Embunit. By making the test specific to a single function, the test should be simple, quick to write, and quick to run. In this article, you will learn how to perform C# unit testing with Moq which is a popular and friendly open source mocking framework. This page lists down the practice tests / interview questions and answers for unit testing (general concepts) which applies for all programming languages. The Art of Unit Testing: with examples in C# [Roy Osherove] on Amazon. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. The unit test cases writing and execution is done by the developer (not the tester) to make sure that individual units are working as expected. check with an ohm meter from the terminal on op switch to eng ground with the engine off and if there is continuity then the switch is shorted wich is why your gauge is pegged. Unit Testing is the first level of software testing where the smallest testable parts of a software are tested. Unit tests definitively act as documentation for how you want to use a module or a piece of code. I'll focus primarily on how to unit test the model state validation that is performed by ASP. One unit testing framework in C is Check; a list of unit testing frameworks in C can be found here and is reproduced below. Turn on the ohmmeter and slide the sending unit's float arm from the lowest to the highest position as you check your meter reading. unit-testing documentation: Example of simple unit test in C#. Unit testing with C++ requires a test runner. Nice test framework. Visual Studio is used to create test code. This version introduces support for Test Driven Development (TDD), by automating test script generation. Even better,. It was ugly for the offense. Here's the source for one of my simpler test files. As such, we are at the point where almost everyone knows that daytime running lights help keep everyone safer. µnit is a small and portable unit testing framework for C which includes pretty much everything you might expect from a C testing framework, plus a few pleasant surprises, wrapped in a nice API. Unit Tests, when integrated with build gives the quality of the build as well. We can benefit a lot from Kotlin's powerful language features to write readable and concise unit tests. Easily Unit Testing Event Handlers 7 Replies In C#, If you need to unit test a class that fires an event in certain circumstances (perhaps even asynchronously), you need to handle a little more than just running some code and doing the assertion. Unit Test, Modified Unit Test, and Answer Key UNIT TEST – PROBABILITY & STATISTICS Standards Covered: A2. A unit here is the smallest part of code that can be tested in isolation, for example, a free function or a class method. Before we get into understanding the available tools and their benefits, let us understand why unit testing is important. To write them, you'll need to break your program down into independent units, and create tests that examine each unit one by one in a. 21 he became the first Basic Combat Training trainee to record a perfect score of 600 points on the Army's new physical fitness test. This requires unit testing on multiple types, in this case, DateTime, int, and Double. Or perhaps you’ve tried to learn it and got a bit lost or ended up with fat and fragile tests that got in the way and slowed you down. 31 SP06 SAP NetWeaver 7. I’m a big fan of unit testing frameworks. This is the product of my frustrations towards existing unit testing frameworks for C like CUnit and Check. Find Bug with help of Light and Testing What is Unit Testing. The purpose is to validate that each unit of the software performs as designed. Pester even gives you the means to validate data and test program flow. Unit testing with C++ requires a test runner. Documentation. A unit can be considered as the smallest testable part of an application. In practice Cantata has proved successful and increased unit testing efficiency. Depending on how many standard library functions your runtime has, you may or not be able to use one of those. First of all we have to write some code to unit test them. Easily Unit Testing Event Handlers 7 Replies In C#, If you need to unit test a class that fires an event in certain circumstances (perhaps even asynchronously), you need to handle a little more than just running some code and doing the assertion. Two computer security flaws were discovered in early 2014: Apple’s “goto fail” bug and OpenSSL’s “Heartbleed” bug. However, you can also specify the name of a test, or a pattern to select that test to be executed, or removed from execution. 1 day ago · When it comes to maximizing highway safety, being seen has always been an obvious solution. Creating Unit tests for your c# code the testing framework. Includes guided links for students, lesson plans and references for teachers, as well as collaborative projects directed towards the middle school level. FEMA Test Answers, New York, New York. Start studying Math: Unit Test. In Eclipse, there are various ways of doing it, but the closest I could come to Ctrl-R, T was Alt-Shift-X, T. Thithutienganh provides full free English sample tests for you to practice. I've been introduced to unit testing while working with colleagues on quite a big project for which we use Python. No one wants to spend time trying to figure out what is that your test does. To simplify development of unit tests, unit test frameworks are usually used. Unit Test Frameworks. Live Unit Testing automatically runs any impacted unit tests in the background and shows your code coverage live in Visual Studio. The purpose of this procedure is to define the step by step method to implement the correct practices for the precommissioning & commissioning of Split AC Units through the guidelines contained herein so as to ensure that the job execution complies with the project requirements and serves the intended function to satisfactory level. Unit Test Frameworks for C#: The Pros and Cons of the Top 3 Erik Dietrich February 15, 2017 Developer Tips, Tricks & Resources If you enjoy the subject of human cognitive biases , you should check out the curse of knowledge. You will step by step familiarize yourself with the test formats and sample questions before taking a real test. Unit testing multi-threaded code using Mocks The worse kind of "unit test" is an inconsistent one. C unit testing The approach to unit testing frameworks used for Check originated with Smalltalk, which is a late binding object-oriented language supporting reflection. When you test the right thing, you get better unit tests. Unit testing can be harder than actual implementation. 3 Tutorial: Basic Unit Testing. Check that the pressure gauges / switches are installed and is operating; 6. This means that most service classes have constructors, which accept all dependencies in form of interfaces. Run unit tests written in MATLAB ® on your hand written C code and check if changes to your C code results in any unit test failures. The smallest realistic Unit Test build you can do is a source file, a test file, and Unity. The objective of Unit Testing is to isolate a section of code and verify its correctness. IsTrue and one for Assert. Well, unit testing has always been the perfect solution, as you can run tests that check more data than a person could in a day in a matter of milliseconds. net is a free, open source, community-focused unit testing tool for the. Using Moq. It is written in C++ but is used in C and C++ projects and frequently used in embedded systems but it works for any C/C++ project. Regression test: A test that was written when a bug was fixed. Unit Test Coverage Whilst you are developing your software you should be writing tests to exercise that code. Maybe you're new to C++. Unit testing is a type of testing to check if the small piece of code is doing what it is suppose to do. However, you can also specify the name of a test, or a pattern to select that test to be executed, or removed from execution. About Moq;. In our Octopus Deploy project for Kraken, I defined a PowerShell step to git pull the Kraken code down to the unit test server, into the c:\tests\kraken folder. The function that I want to test is int IBQpl. Here is a sample unit test fully running:. Test between the positive terminal on the fuel gauge and a good ground; the reading should be 12 volts. txt) or read online for free. A typical test environment will typically be composed of integration tests of the whole system and unit tests per components. To try it with out example above type in:. Unit test recommendations for Serverless projects. One unit testing framework in C is Check; a list of unit testing frameworks in C can be found here and is reproduced below. Arrange in order- A. Unit testing. The same ignition power transistor unit is used on all years and models of the DOHC 6G72 V6 (turbo and non-turbo). Nice test framework. Many people even roll their own framework. Run the C Unit Test The IDE provides a few ways to run tests. The “Eye Test”: The Second-Half Surge Returns in UCLA’s Victory over Arizona State because he left a lot of yardage on the field by locking into plays downfield and ignoring his check. This makes unit testing pretty easy, but most of the time you need to deal with side effects, which here means DOM manipulations. NET Framework. Then they write code in order to change the application until the test passes. Smart unit tests also specify if there are any input values that are not considered as a part of code (for example null value not checked). Let's all try the Unit C - Test found on Socrative:. All you have to do is to include unit_test_main_parallel. Finally we make some specific improvements to the. This document provides a template for the unit test plan to be executed on completion of the development of a program such as a report or a form or an interface. Python Unit Test Example Source. NET and other. Keep the unit tests fast and constrained. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. Why Unit Testing. It works with any test runner and unit. It is primarily designed to be used with the GNU autotools (autoconf, automake, etc), and the documentation is not clear on integrating check with a standard Makefile-based project. How to test a scooter capacitor discharge ignition (CDI) unit. doc), PDF File (. com makes it easy to get the grade you want!. A Unit testing is a Level of Testing where smallest part of individual unit / component (called unit) is tested to determine if they are fit for use. We're going to use it daily for our projects. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. Test * CppUnitLite * NanoCppUnit…. unit tests is the need for calling non-public methods of the code to test. Cantata from QA Systems offers an ideal solution for the creation and execution of unit and integration tests, including coverage analysis. Tick four life processes that all bacteria must be able to do. This one appears straight-forward because the unit test simply instantiates the template under test with a mock type. For example, to test the equality comparison for a Complex number class, write:. Testing for ASP. As an illustration of how smart unit testing works, I am going to create a class library using Visual Studio 2015 in which I will add some code and add smart unit tests for the methods in the code. 0 should be returned):. SSIS:Automated Unit Testing October 17, 2011 There are quite a few ways to perform unit testing for a SSIS package and also automate it. No one wants to spend time trying to figure out what is that your test does. bd is The Official Website For Publish University of Dhaka Admission Result. So, we need a main function that knows how to run the tests, check the results, and print a report. MATH110 Unit 02 Test 0. The smallest parts of an application are called units, testing of those units to check whether it is fit for use or not is called unit testing. Thanks to dependency injection, AngularJS makes it easy to unit test your code. In this article, you will learn how to perform C# unit testing with Moq which is a popular and friendly open source mocking framework. ALL Online Courses 75% off for the ENTIRE Month of October - Use Code LEARN75. It is concerned with testing individual units of source code. According to new information provided to Aviation Week, the aircraft became operational with the recently reformed 427th Reconnaissance Sqdn. Unit testing is a part of the test-driven development (TDD) methodology that requires developers to first write failing unit tests. The property Name is of type System. The Solution. Maybe you're new to C++. Dhaka University for the educational year 2019-20 of Honours 1st Year Admission Test (Unit “A” or Unit ‘KA’) will seized on 29 th September (Friday) 2019 at 10:00 am to 11:30 am. How valuable, though, is it really to learning, and are there ways we can. Manual Testing objective type questions with answers (MCQs) for interview and placement tests. Choose A or B and explain how this type of wind is formed. This documentation comprises these three parts: Why do we need yet another C++ Test Framework? Tutorial - getting started. After Complete Admission Test, Authority Will publish unit Wise Result on Official Website. Testing a power supply manually with a multimeter is one of two ways to test a power supply in a computer. Unit tests are added in the test subdirectory of the respective component. Unit testing is a part of the test-driven development (TDD) methodology that requires developers to first write failing unit tests. Check that the pressure gauges / switches are installed and is operating; 6. But we’ll add some unit tests to be sure. PIO Unit Testing¶ PIO Unit Testing allows segregating each part of the firmware/program and testing that the individual parts are working correctly. com unit testing video. Finally we make some specific improvements to the. This is a much more rigorous testing than is generally the case with unit tests and provides exact answers as to the validity of the model assumptions. Testing worked well in the previous versions, but in 2. Now it is easy to do Continuous integration in Holland: check in, do automatic builds, automatic testing and create a test-result graph by Jenkins in the way to go. Problem 3. SauceCon brings together the global community of Sauce Labs users and automated testing experts. How to unit test a method that has void as return type. 0 release yet—and is available in the package distribution systems of most Linux distributions, as well as for Windows and OS X. Your job with the summer assignment is to make sure that you're ready for the 'basic' calculus we'll be using at the beginning of the year in AP Physics C. Unit tests inform the developer when a change in one unit interferes with the functionality of another. Unit testing is a concept that will become part of just about everything you do in future programming-focused courses, so we want to make sure that you understand the idea and begin to make use of it in all of your work. Maybe you’ve heard of automated or unit testing before and you’re keen to learn more. As far as the unit test is concerned, the function is a black box. IsValid to be false in a unit tests? The simple thought would be to simply create an invalid object and pass that into your action method, but this will not work. As a database developer I would like to implement an advanced and cost-effective database unit testing framework that can help my team in early bug detection and does not require context switching from SQL to any other tool/language and is suitable when all my database development work is done. A bit late perhaps, but Check is an often used framework or else see C++ frameworks like Google Test. scenarios). I decided to make this to be able to more easily organize my tests and I emphasized on readability. detecting running under UNIT TEST. A unit test verifies that a function or set of functions "honors its contract" - in other words, that the function(s) under test meet the requirements. The pioneers of software development in that era were proponents of various levels of testing; some advocated "unit" testing and some didn't, but all recognized the importance of. Matt Honeycutt introduces SpecsFor, a. Can you experienced developers share your rationale on what and when to test? Long story I used to do test-driven developmen. If you are using Unit Test to write test case then the [TestClass] attribute is highly required in the Microsoft unit testing framework for any class that contains unit test methods that you would like to run in Visual Studio Test Explorer. 1: You can think of the START_TEST macro as a function that takes as an argument the name of our test function, in this case test_money_create. 7 thoughts on " Checking Logging in Unit Tests " Pingback: Use JMockit to Unit test logging output | T. Unit Test Examples. Background and Related Work In this section, we provide information on related work in unit testing and the test-driven development mode of writing automated unit tests. [UPDATE 5/23/2017 : We now also support. You can use the IDE to create, run, debug, and view results of your C and C tests. In the setup() method, aren't you missing a call to instantiate the mockAppender just before the addAppender() call?. If write unit tests against a database, we're not really testing anything in isolation since the database is made of multiple. Letting the SonarQube platform drive the execution of the unit tests and the code coverage tool. TUT is a small and portable unit test framework for C++. Let’s see how we check for thrown exceptions. The purpose is to validate that each unit of the software performs as designed. Smart unit tests also specify if there are any input values that are not considered as a part of code (for example null value not checked). Here is a sample unit test fully running:. As a database developer I would like to implement an advanced and cost-effective database unit testing framework that can help my team in early bug detection and does not require context switching from SQL to any other tool/language and is suitable when all my database development work is done. It is primarily designed to be used with the GNU autotools (autoconf, automake, etc), and the documentation is not clear on integrating check with a standard Makefile-based project. The framework is considered stable—even though it has not reached its 1. Its dedicated view. Choose A or B and explain how this type of wind is formed. China will launch test flights for the next two space rockets in its Smart Dragon series meant for commercial use in 2020 and 2021, the official Xinhua news agency reported on Sunday, as an. Unit testing is a type of testing to check if the small piece of code is doing what it is suppose to do. Hope it can help. Background and Related Work In this section, we provide information on related work in unit testing and the test-driven development mode of writing automated unit tests. If you are using Unit Test to write test case then the [TestClass] attribute is highly required in the Microsoft unit testing framework for any class that contains unit test methods that you would like to run in Visual Studio Test Explorer. Check is used by some well-known projects such as GStreamer. I think that this is a common practice among R programmers. (See the screenshot. Keep the unit tests fast and constrained. I have some code where the purpose is the decide if a char is between quotes in an expression. The unit in this case is the migration, not a stored procedure or function. Name your test class after the class it tests. The Purpose of Unit Testing. Letting the SonarQube platform drive the execution of the unit tests and the code coverage tool. View Notes - MATH110 Unit 2 Test from MATH 110 at American Public University. Goto Fail, Heartbleed, and Unit Testing Culture. com course "Up and running with iOS. The behavior of integration. Developer here. It’s been successfully used in a production environment, and we’re continually adding features to it. If you write your tests such that unimplemented code will fail, then you can check out implementation successes as your tests start to succeed. Manual Testing objective type questions with answers (MCQs) for interview and placement tests. The “Eye Test”: The Second-Half Surge Returns in UCLA’s Victory over Arizona State because he left a lot of yardage on the field by locking into plays downfield and ignoring his check. sylcheung> Is it possible to use python to unit test C++ code? If yes, sylcheung> is there any example available? Yes, it's quite possible. In turns out that check is no harder to use than any other unit testing tool. ) Connect a grounded test lamp to the "P" terminal on the flasher unit. Quizlet flashcards, activities and games help you improve your grades. For an introduction to iOS programming, see my latest lynda. There are some great books to read on that topic (I've listed my favorites1, 2 in the references section). We should try to write our tests in a way that minor changes to the code shouldn't make us change all of our tests. The problem often comes up in which you want to write unit tests for some code A, but that code calls into some other code B, and you don't want to be testing B in your unit tests. As the software is prone to changes during the Unit Testing due to enhancements/changes to the requirements. In Unit Testing you check if a certain chunk of code does its job. A unit test is a piece of a code that checks the correctness of some other code. We will be creating a library to represent money, libmoney, that allows conversions between different currency types. In the 1960s, it was considered a baseline good practice in software engineering to test your code as you wrote it. Then you will learn how to Moq, a mocking framework which allows you to replace dependencies in your code when you. Maybe you're new to C++. My workplace had a policy requiring developers to write system tests in addition to having good unit test coverage. 2015-02-17 11:22 Sandro Santilli * [r13227] Fix warning about unchecked return code The code path is actually never hit as far as I can tell 2015-02-17 11:06 Sandro Santilli * [r13226] Drop use of lw_asprintf Also removes a memory leak 2015-02-17 10:42 Sandro Santilli * [r13225] Fix another typo in recent rewrite of message handlers 2015-02-17. NET MVC Controllers Dhananjay Kumar / Friday, January 15, 2016 In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. FluentAssertions is an alternative assertion library for unit tests, to use instead of the methods in Assert class that Microsoft provides. GUI unit testing with Qt Test - part 2 - advanced testing; I recommend to read the previous posts of the series, in particular the first part of C++ unit testing with Qt Test, to fully understand new concepts I will introduce here. Manual Testing objective type questions with answers (MCQs) for interview and placement tests. 1 day ago · When it comes to maximizing highway safety, being seen has always been an obvious solution. Unit testing framework should provide following functionality: Writing of unit tests should be simple and obvious for new users. Get the best of test-driven development with an easy-to-use and fluent unit test runner. (From Reuters)A golden eagle picks the carcass of a wild boar that was killed by wolves in the 30 km (18 miles) exclusion zone around the Chernobyl nuclear reactor near the village of Babchin some 370 km (217 miles) southeast of Minsk February 3, 2008. Writing a framework for C requires solving some special problems that frameworks for Smalltalk, Java or Python don't have to face. My understanding of unit testing is you test each function as a standalone function before you integrate them in to your program. As you learn more about programming, you'll discover how to choose and link in various libraries. I paid $125. Introducing Database Regression Testing into Your Organization. It detects the types of bugs that the compilers normally fail to detect. Live Unit Testing automatically runs any impacted unit tests in the background and shows your code coverage live in Visual Studio. Here's the source for one of my simpler test files. 05/14/2019; 10 minutes to read +9; In this article. Have a father who was. Execute tests in controlled environment, ideally from your IDE. Embedded Unit does not require std C libs. If you are using Unit Test to write test case then the [TestClass] attribute is highly required in the Microsoft unit testing framework for any class that contains unit test methods that you would like to run in Visual Studio Test Explorer. Here is a unit case for business component TulipBusiness. Unit testing is the process through which units of source code are tested to verify if they work properly. Python Unit Test Example Source. It was done on Xcode 4, so is a bit dated at this point. com unit testing video. Unit testing can be harder than actual implementation. Only need a starting URL; a summary and detailed report is produced. Unit Test: C 1. It give detail information about it. Unit testing is a type of testing to check if the small piece of code is doing what it is suppose to do. Many facts of Unit Testing are well-known by software professionals but sometimes we need to brush up our knowledge for being updated.