DotNetShoutout - Stories tagged with Unit Tests
2
Shouts

Using SpecsFor.Mvc - Navigation and Form Submission

published 417 days, 6 hours, 14 minutes ago posted by Matt_TCFMatt_TCF 422 days, 13 hours, 16 minutes ago
Wednesday, April 04, 2012 10:04:00 AM GMT Friday, March 30, 2012 3:01:55 AM GMT
This is part two of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, we’ll look at navigating around your app from SpecsFor.Mvc and at how to locate, populate, and submit forms. (more)
category: Web Dev | clicked: 24 | comment | | source: trycatchfail.com
tags: SpecsFor, acceptance tests, specsfor.mvc, Testing, Unit Tests, ASP.NET
8
Shouts

Scaffolding Actions and Unit Tests with MvcScaffolding - Steve Sanderson’s blog

published 787 days, 19 hours, 11 minutes ago posted by iftekharahmedamitiftekharahmedamit 788 days, 7 hours, 50 minutes ago
Wednesday, March 30, 2011 9:07:17 PM GMT Wednesday, March 30, 2011 8:28:04 AM GMT
This blog post is part of a series about the MvcScaffolding NuGet package:Introduction: Scaffold your ASP.NET MVC 3 project with the MvcScaffolding packageStandard usage: Typical use cases and optionsOne-to-Many RelationshipsThis post: Scaffolding Actions and Unit TestsComing soon: Customizing the T4 templates* Coming soon: Creating entirely new scaffolders with custom PowerShell logic* * Yes, I know those last two have been long delayed. There have been some changes to the extensibility mechanism and ... (more)
category: Web Dev | clicked: 1 | 1 comment | | source: blog.stevensanderson.com
tags: ASP.NET MVC 3, Unit Tests, MVC, ASP.NET
4
Shouts

Friend assemblies in .NET

posted by http://agafonovslava.blogspot.com/http://agafonovslava.blogspot.com/ 979 days, 1 hour, 4 minutes ago
Monday, September 20, 2010 3:14:17 PM GMT
What is friend assemblies in .NET and how it works? Friend assembly is an assembly that can access another assembly's or project Friend (Visual Basic) or internal (C#) types and members. If you identify an assembly as a friend assembly, you no longer need to have this types and members as public in order for them to be accessed by other assemblies. Why you need friend assembly especially if you senior developer? This is convenient in the following rules: during unit testing... (more)
category: Architecture | clicked: 0 | comment | | source: blog.agafonov.net.ua
tags: Friend Assemblies, assembly, Unit Tests
2
Shouts

Unit Tests for ASP.NET MVC application that uses resources in code behind.

published 980 days, 2 hours, 3 minutes ago posted by http://rredcat.blogspot.com/http://rredcat.blogspot.com/ 982 days, 18 hours, 47 minutes ago
Sunday, September 19, 2010 2:14:31 PM GMT Thursday, September 16, 2010 9:31:29 PM GMT
Download source files - here. Some time ago I start to play with ASP.NET MVC. It is very well pattern and Microsoft made nice choose that implemented it for ASP.NET in my opinion. I started a project that uses ASP.NET MVC. This project requests multilingual support. I use resources for this. It works well when I use resource's properties in the View's layer but when I call resource's properties from code behind... (more)
category: Web Dev | clicked: 1 | comment | | source: rredcat.blogspot.com
tags: ASP.NET MVC, Unit Tests, resource
9
Shouts

Basic introduction to writing unit tests with Moq - Part 2

posted by deanomachinodeanomachino 1082 days, 23 hours, 42 minutes ago
Tuesday, June 08, 2010 4:36:12 PM GMT
Basic introduction to writing unit tests with Moq - Part 2 This post is the second part of a series on Mocking with Moq. If you haven't already taken a look at the first post on the basics of Moq, please check it out. In this post, I hope to cover some other basic aspects of mocking such as Verifying, Exceptions and strict Mock behaviour. There are a lot of awesome aspects of mocking out there, and I still try and experiment with them as much as possible. In the first post, I talked about the adv... (more)
category: Agile | clicked: 4 | comment | | source: www.deanhume.com
tags: .NET, Rhino Mocks, Interfaces, C#, Development, Mocking, Agile, Moq, Unit Tests, Interface
7
Shouts

Basic Introduction To Writing Unit Tests With moq

published 1141 days, 6 hours ago posted by deanomachinodeanomachino 1143 days, 5 hours, 57 minutes ago
Sunday, April 11, 2010 10:17:45 AM GMT Friday, April 09, 2010 10:20:39 AM GMT
Basic Introduction To Writing Unit Tests With moq What is mocking? Well....according to Wikipedia it is: "In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A computer programmer typically creates a mock object to test the behavior of some other object" In short, Mock objects are a great way to simulate an object that we need to work with. Sometimes we may also come across situations or states that are difficult to reprodu... (more)
category: Agile | clicked: 5 | comment | | source: www.deanhume.com
tags: .NET, Rhino Mocks, C#, Development, Mocking, Agile, Moq, Unit Tests
9
Shouts

Mike Chaliy: FsSpec: Introducing yet another Unit Testing/BDD framework for F#

published 1245 days, 2 hours, 58 minutes ago posted by http://chaliy.name/http://chaliy.name/ 1249 days, 5 hours, 18 minutes ago
Monday, December 28, 2009 1:19:46 PM GMT Thursday, December 24, 2009 10:59:37 AM GMT
Syntax is inspired by RSpec, so specification looks like: do describe "Calculator" [ it "should add two integers" (fun unit -> let res = Calc.Add 2 2 res.should_be_equal_to 4 ); it "should devide two integers" (fun unit -> let res = Calc.Div 2 2 res.should_be_equal_to 1 ); ] (more)
category: How To | clicked: 1 | comment | | source: chaliy.name
tags: BDD, Unit Tests, F#
12
Shouts

Unit Testing Entity Framework Video - Unit Testing Database Applications Tutorial -

published 1249 days, 19 hours, 36 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 1251 days, 35 minutes ago
Wednesday, December 23, 2009 8:42:22 PM GMT Tuesday, December 22, 2009 3:43:01 PM GMT
Muhammad Mosa prepared a video on examples for unit testing EF apps. Entity framework has been considered hard to test, but Muhammad shows how to do it easily with Typemock Isolator. You can download the presentation and code and try it for yourselves.   You can also follow Muhammad on Twitter, and I suggest you do! (more)
category: Screencast | clicked: 1 | comment | | source: site.typemock.com
tags: UnitTesting, EF, Entity Framework, UnitTest, entityframework, UnitTests, TypeMock.NET, Unit Tests, Typemock, Unit Test, unit testing
9
Shouts

SQLite Nunit & Fluent NHibernate - Test your data access layer – Round 2

published 1266 days, 18 hours, 44 minutes ago posted by http://daniewat82.myopenid.com/http://daniewat82.myopenid.com/ 1267 days, 16 hours, 21 minutes ago
Sunday, December 06, 2009 9:33:32 PM GMT Saturday, December 05, 2009 11:56:54 PM GMT
Posted by @dotnetguyuk - Last month I wrote a post explaining how to test your data access layer by using Fluent NHibernate to generate an in-memory SQLite database from an applications domain model and fluent mappings. You can then run unit tests against the SQLite database rather than mocking objects. Over the last couple of weeks I have become less fond of Fluent NHibernate (long story! Curse & Swear!) and wanted to recreate the same functionality using NHibernates standard mappings and features.... (more)
category: Architecture | clicked: 7 | 2 comments | | source: www.dotnetguy.co.uk
tags: NHibernate, SQLite, Unit Tests
5
Shouts

Generation Test: Automated Unit Tests for Legacy Code with Pex

posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 1267 days, 19 hours, 1 minute ago
Saturday, December 05, 2009 9:17:11 PM GMT
Creating and maintaining a unit test suite for legacy code can be a challenge. Pex automatically produces a small test suite with high code and assertion coverage (more)
category: How To | clicked: 1 | comment | | source: msdn.microsoft.com
tags: UnitTest, MSDN, UnitTests, Pex, Unit Tests, MSDN Magazine