Top "Tdd" questions

Test-Driven Development (TDD) involves writing a failing automated test to specify what is to be built.

GoogleTest vs CppUnit: The facts

In the process of setting our C++ unit testing framework for the next years we shortlisted GoogleTest and CppUnit. I …

c++ unit-testing tdd googletest cppunit
How do I put new List<int> {1} in an NUNIT TestCase?

I have the method: public static int Add(List<int> numbers) { if (numbers == null || numbers.Count == 0) return 0; if (…

c# tdd nunit testcase
How do I add a fakes assembly in VS 2012 Professional RC?

According to the two articles below on VS 2012 and Microsoft Fakes Test Framework, I should be able to right click …

c# tdd visual-studio-2012 microsoft-fakes
How do I test database-related code with NUnit?

I want to write unit tests with NUnit that hit the database. I'd like to have the database in a …

c# database unit-testing tdd nunit
Avoid matching .WillOnce multiple times in Google Mock

I have a mock object setup that looks like this: MyObject obj; EXPECT_CALL(obj, myFunction(_)) .WillOnce(Return(1)) .WillOnce(Return(1)) .…

c++ tdd googlemock
Dependency injection in TypeScript

I'm looking into the possibilities to do TDD with TypeScript. If I write my tests in TypeScript, is it possible …

tdd requirejs typescript amd
How to MOQ an Indexed property

I am attempting to mock a call to an indexed property. I.e. I would like to moq the following: …

c# tdd mocking moq
Is there any framework for .NET to populate test data?

I am use c# and for unit testing and integration testing usually I need to populate fields automatically based on …

c# .net tdd populate
How to write testable controllers with private methods in AngularJs?

Alright, so I have been stumbling upon some issue for a long time and I would like to hear an …

testing angularjs tdd
Unit testing factory methods which have a concrete class as a return type

So I have a factory class and I'm trying to work out what the unit tests should do. From this …

unit-testing tdd factory