About 4,780,000 results
Open links in new tab
  1. What is SUT and where did it come from? - Stack Overflow

    I see many people talking about the term SUT, but do not understand why they use that term. SUT is what you want to test? Where does this term come from and what does it mean? For …

  2. c# - How to determine which is a SUT and which is a collaborator …

    Apr 22, 2020 · The SUT stands for System Under Test, which practically means that object against which you perform your act. In the assert phase you are checking your assumptions, …

  3. How to verify that a method of a SUT has been called?

    { var sut = new MyClass(); sut.OuterMethod(someValue); //Assert that InnerMethod was called } If InnerMethod belonged to a mocked object, I would have just called mockObject.Verify(x => …

  4. c# - How do I use AutoFixture Attributes to get FakeTimeProvider ...

    Dec 29, 2024 · How do I use AutoFixture Attributes to get FakeTimeProvider reference when my SUT depends on TimeProvider Asked 12 months ago Modified 12 months ago Viewed 169 times

  5. c# - Mocking HttpClient in unit tests - Stack Overflow

    Apr 5, 2016 · I have some issues trying to wrap my code to be used in unit tests. The issues is this. I have the interface IHttpHandler: public interface IHttpHandler { HttpClient client { get; } } …

  6. unit testing - Angular test - set up a spy on a function of the SUT ...

    May 9, 2023 · The SUT component has a function I need to spy on (not ideal as noted further below). I want to set up the TestBed so that the function already has a spy assigned when …

  7. TDD FIRST principle - Stack Overflow

    Aug 3, 2013 · A unit test could be isolated from the SUT which it tests in a different developer artifact (class, package, development project) and/or delivery artifact (Dll, package, assembly). …

  8. How to mock Entity Framework's FromSqlRaw method?

    Oct 11, 2020 · I am writing a Unit Test and need to mock Entity Framework's .FromSqlRaw method. When the method is executed in the class under test, it throws following exception: …

  9. Should I add the nupkg dependencies of the Assembly of the SUT …

    Mar 27, 2024 · Typically, if you're only using and referencing the SUT from the test project, the test code isn't going to need the SUT's dependencies (they're still there, transitively). If, on the …

  10. What's the difference between faking, mocking, and stubbing?

    Dec 6, 2008 · From xunitpattern: Fake: We acquire or build a very lightweight implementation of the same functionality as provided by a component that the SUT depends on and instruct the …