unit

running fsUnit tests from visual studio

So i wrote my first fsUnit test in Visual studio. It is just an extension to the NUnit framework and I have been using NUnit from doing TDD in C#. While writing tests in c#, I am able to run the tests from visual studio But I am not able to run f# tests from VS. why is this ? Are there any other tools which i can use to run the tests (ex...

Mock Verify/VerifyAll before or after Assertion

Hi All, I have been used to following code pattern while writing my test public void TestMethod_Condition_Output() { //Arrange---------------- Mock<x> temp = new Mock<x>(); temp.setup....... //Act-------------------- classinstance.TestMethod() //Assert------------------ temp.VerifyAll(); Assert.AreNot...

Sending ATA commands to SATA Drive on Mac OS X

Any one please help on sending ATA commands to SATA Drive on Mac OS. As per the Apple docs, its not possible to send it from Application and is recommended to write a Logical Unit Driver. There is not much document on the same for ATA family. Provider class for SATA device is IOAHCIBlockStorageDevice. Please shed some light on writing...

unit testing uniqueness of a field of an entity

Hi Guys, I am writting unit tests for various bean property constraints. For most of the constraints such is field length , format of the field and whether a field is null or not, i am able to test using the JSR303 validation API. My question is, how do i write a unit test for this constraint: 'The field username of entity User must be...