¡@

Home 

c# Programming Glossary: unit

How to get difference between two dates in Year/Month/Week/Day?

http://stackoverflow.com/questions/1083955/how-to-get-difference-between-two-dates-in-year-month-week-day

first second values. Start with writing a whole slew of unit tests initially easy cases then move on to tricky ones involving..

Design - Where should objects be registered when using Windsor

http://stackoverflow.com/questions/1410719/design-where-should-objects-be-registered-when-using-windsor

from the excellent xUnit Test Patterns that doesn't need unit testing in itself. Your tests should not need the container.. and you can directly supply Test Doubles to them from the unit tests. It is best if you can design all of your modules to be..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

IoC for Unit Testing How can a IoC Container be used for unit testing Is it useful to manage mocks in a huge solution 50 projects.. Any C# libraries that work well for using it in unit tests c# unit testing mocking inversion of control share.. C# libraries that work well for using it in unit tests c# unit testing mocking inversion of control share improve this question..

Expression Versus Statement

http://stackoverflow.com/questions/19132/expression-versus-statement

was crystal clear. In FORTRAN a statement was one unit of execution a thing that you did. The only reason it wasn't..

The located assembly's manifest definition does not match the assembly reference

http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference

not match the assembly reference I am trying to run some unit tests in a C# Windows Forms application Visual Studio 2005 and..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

return CompanyAddress ... Use a static class as a unit of organization for methods not associated with particular objects...

Creating a DateTime in a specific Time Zone in c# fx 3.5

http://stackoverflow.com/questions/246498/creating-a-datetime-in-a-specific-time-zone-in-c-sharp-fx-3-5

a specific Time Zone in c# fx 3.5 I'm trying to create a unit test to test the case for when the timezone changes on a machine..

Code Coverage for C#/.NET [closed]

http://stackoverflow.com/questions/276829/code-coverage-for-c-net

. It will allow you to easily right click on your unit test class library and hit Test With Coverage and it will pull..

Repository pattern tutorial in C# [closed]

http://stackoverflow.com/questions/3175/repository-pattern-tutorial-in-c-sharp

and Patterns by Jimmy Nilsson My blog post Using the unit of work per request pattern in ASP.NET MVC also details a Repository..

What C# mocking framework to use? [closed]

http://stackoverflow.com/questions/37359/what-c-sharp-mocking-framework-to-use

is your favourite .NET mocking framework and why c# .net unit testing mocking share improve this question I've not used..

DateTime vs DateTimeOffset

http://stackoverflow.com/questions/4331189/datetime-vs-datetimeoffset

moment and are therefore equivalent. If you are doing any unit testing and need to be certain of the offset test both the DateTimeOffset..

Comparing object properties in c#

http://stackoverflow.com/questions/506096/comparing-object-properties-in-c-sharp

code that would do something similar to help with writing unit test. Here is what I ended up using. public static bool PublicInstancePropertiesEqual..

How do I get the path of the assembly the code is in?

http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in

assembly just the one containing the code. Basically my unit test needs to read some xml test files which are located relative.. defined the following property as we use this often in unit testing. static public string AssemblyDirectory get string..

Refactoring code to avoid anti-pattern

http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern

belongs in an object that manages the business transaction Unit of Work and is aware of the right time to end the transaction..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

IoC for Unit Testing How can a IoC Container be used for unit testing Is..

In what areas might the use of F# be more appropriate than C#? [closed]

http://stackoverflow.com/questions/2785029/in-what-areas-might-the-use-of-f-be-more-appropriate-than-c

My experience has been a very positive one. In particular Units of measure The industry I work in is littered with units. The.. of the problem and the design tensions in play. Unit testing Code written using non side effecting functions and..

How do I find out which process is locking a file using .NET?

http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net

c# Command line tool Across a Network Locking a USB device Unit test fails with locked file deleting locked file c# file locking..

Units of measure in C# - almost

http://stackoverflow.com/questions/348853/units-of-measure-in-c-sharp-almost

of measure in C# almost Inspired by Units of Measure in F#.. of measure in C# almost Inspired by Units of Measure in F# and despite asserting here that you couldn't.. other day which I've been playing around with. namespace UnitsOfMeasure public interface IUnit public static class Length..

Is it possible to programmatically generate an X509 certificate using only C#?

http://stackoverflow.com/questions/3770233/is-it-possible-to-programmatically-generate-an-x509-certificate-using-only-c

password Unit test using System.Security.Cryptography using System.Security.Cryptography.X509Certificates.. using Microsoft.VisualStudio.TestTools.UnitTesting namespace MyApp TestClass public class CertificateGeneratorTests..

Entity Framework 4 - AddObject vs Attach

http://stackoverflow.com/questions/3920111/entity-framework-4-addobject-vs-attach

Repository pattern don't deal with ctx.Persons and Unit of Work don't deal with ctx.SaveChanges . But under the covers..

Event Bubbling and MVP: ASP.NET

http://stackoverflow.com/questions/8851933/event-bubbling-and-mvp-asp-net

The expectation is to create MVP that is easy to do Unit Testing and does not violate MVP architecure. Note Though this..

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

vs Visual Studio 2008's Test Projects for Unit Testing closed.. vs Visual Studio 2008's Test Projects for Unit Testing closed I am going to be starting up a new project at.. and the ASP.NET MVC stuff. I am looking at using either NUnit or the built in test projects that VS2008 has but I am open..