24.01.2014 Views

Testowanie. Testy jednostkowe

Testowanie. Testy jednostkowe

Testowanie. Testy jednostkowe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Przykład<br />

<strong>Testowanie</strong> oprogramowania<br />

<strong>Testy</strong> akceptacyjne<br />

Wytwarzanie sterowane testami<br />

Fazy TDD<br />

Implementacja stosu<br />

Wstępna implementacja stosu<br />

[TestFixture()]<br />

public class <strong>Testowanie</strong>Stosu<br />

{<br />

[Test()]<br />

public void TestCase()<br />

{<br />

Stos s = new Stos();<br />

Assert.AreEqual(s.isEmpty(), true);<br />

s.push(1024);<br />

Assert.AreEqual(s.pop(), 1024);<br />

}<br />

}<br />

Marcin Młotkowski Programowanie zwinne 32 / 34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!