Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the VS menu function key

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use the VS menu function keys, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

As we will see, the tests will be written in T-SQL. The next area is the Test Condition section:

These are some of the actions we specify after the test script is executed, just like the Asserts statement in the xUnit test framework.

We need to do one more step of tidying up before we begin. When we create the OrderDiscountTests class, it will create a default test for us. Click the Rename button and name it ZeroDollarOrderShouldHaveZeroDiscount. Now, click the "Click here to create" button, delete the comment, and enter the following code: exec sp_calculate_discount_for_order 0.00

We want the test to call our stored procedure and use $0.00 as the order price. Based on the corresponding table we mentioned at the beginning of the article, the discount quantity returned should be 0.00. Therefore, we need to add a Test Condition to compare our expected value with the return value. In our Test Condition section, delete Inconclusive Result (click Red X), then select Scalar Value in the drop-down list and click the add button.

This allows us to compare the expected values with the values of specific rows and columns in the result set. Right-click the row and select Properties, and modify it in the properties panel, where we want the value of row 1 and column 1 to be 0.00.

The above is all the contents of the article "how to use VS menu function keys". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report