Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

Moq

Compare

Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET lambda expressions that make it the most productive, type-safe and refactoring-friendly mocking library available. And it supports mocking ... [More] interfaces as well as classes. Its API is extremely simple and straightforward, and doesn't require any prior knowledge or experience with mocking concepts. [Less]

4.58537
   
  0 reviews  |  113 users  |  64,902 lines of code  |  6 current contributors  |  Analyzed about 19 hours ago
 
 

NSubstitute is a friendly substitute for .NET mocking frameworks. It's like a stub with property behaviour. With nice semantics for setting return values. It only has one mode - loose semantics, which you can query afterwards. It's meant to be simple, succinct and pleasant to use.

5.0
 
  0 reviews  |  7 users  |  78,235 lines of code  |  10 current contributors  |  Analyzed 9 days ago
 
 

A .Net dynamic fake/mock/stub framework for creating all types of fake objects, mocks, stubs etc. Easier semantics, all fake objects are just that - fakes - the use of the fakes determines whether they're mocks or stubs. Context aware fluent interface guides the developer. Full VB.Net ... [More] support. Designed for ease of use and for compatibility with both C# and VB.Net. [Less]

5.0
 
  0 reviews  |  2 users  |  24,337 lines of code  |  11 current contributors  |  Analyzed 3 days ago
 
 

Specter is an object-behaviour specification framework for .NET. It enables behaviour-driven development by requiring developers to write executable specifications for their objects, before actually implementing them. Technologically this is similar to test driven development, however the shift ... [More] in nomenclature removes the psychological barrier of writing "tests" for code that does not exist. (Existing projects implementing this idea include RSpec for Ruby and NSpec for .NET) Specter uses Boo meta-programming features and therefore allows very readable specifications to be written. [Less]

4.0
   
  0 reviews  |  1 user  |  3,146 lines of code  |  0 current contributors  |  Analyzed 8 days ago
 
 

Trapeze generates a suite of unit tests or specifications for existing Ruby source code. This is accomplished through dynamic analysis, by reflecting on the public interfaces of classes, modules and top-level methods defined in the source. Trapeze then exercises each object, module and method ... [More] , recording the behavior of the code. This recorded behavior is captured in a suite of test cases or specifications that can be rendered as test code or executable specifications. In essence, Trapeze is a tool for characterizing Ruby source code. Trapeze lets you fly high as you maintain and enhance a Ruby codebase that lacks test or spec coverage, knowing that you have a regression safety net underneath you. [Less]

3.0
   
  0 reviews  |  1 user  |  924 lines of code  |  0 current contributors  |  Analyzed 10 days ago
 
 

NaturalSpec is a .NET UnitTest framework which provides automatically testable specs in natural language. NaturalSpec is based on NUnit and completely written in F# - but you don't have to learn F# to use it.

0
 
  0 reviews  |  0 users  |  41,329 lines of code  |  1 current contributor  |  Analyzed about 2 years ago
 
 

PSMockPSMock is yet another .NET mock framework, but capable of mocking all functions and properties in a class. I.e. it is not necessary to crate mocked objects based on interfaces or virtual functions. The initial implementation is depending on the PostSharp framework to inject mock ... [More] functionality into classes or function calls. SampleA sample on how a test function mocks an instance function: using (Mock.Mocking) { // Verify that the unmocked Echo function returns the in-parameter as the result EchoClass mocked = new EchoClass(); Assert.That(mocked.Echo("real"), Is.EqualTo("real")); // Setup the mocked function to return "mock" regardless of the in-parameter using (Mock.Setup) { Mock.Function(mocked.Echo(null)) .Return("mock"); } // Verify that specified mocked return value is returned Assert.That(mocked.Echo("real"), Is.EqualTo("mock")); } A sample on how to mock the DateTime.Now property used by a class using (Mock.Mocking) { // Set a mocked return value for the DateTime.Now property using (Mock.Setup) { Mock.Function(DateTime.Now) .Return(new DateTime(2000, 1, 1)); } // Verify that GetCurrenDate() returns the mocked date and not the current date TimeUsingClass tu = new TimeUsingClass(); Assert.That(tu.GetCurrentDate(), Is.EqualTo(new DateTime(2000, 1, 1))); } DocumentationA short tutorial is available in the QuickStart page. Status2008-05-17: The initial alpha source code and binaries to demonstrate the concept are available in the Downloads page. A QuickStart page has been added as well. Most of the basic functionality has been implemented, but with limited testing. The next step is to add more tests and samples. [Less]

0
 
  0 reviews  |  0 users  |  2,526 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

Contributed features and third-party integration for Moq. Joining the Moq Contrib ProjectJust send an email to the Moq Discussions list asking to join.

0
 
  0 reviews  |  0 users  |  17,905 lines of code  |  0 current contributors  |  Analyzed 5 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.