In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Xiaobian to share with you how to use VS 2005 framework, I believe most people still do not know how to use, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
The VS 2005 framework is much more powerful than we thought, and it has attracted a lot of technicians and programmers to study it further. Click OK after installation and debugging. This avoids some data loss problems.
We need to do a bit of tidying up before we start. When we create the OrderDiscountTests class, it will create a default test for us. Click the Rename button and name it ZeroDollar OrderShould Have ZeroDiscount. Now click on the "Click here to create" button, delete the comment, and enter the following code: exec sp_calculate_discount_for_order 0.00
We want to test call our store procedure and use $0.00 as the order price. Based on the mapping table we mentioned at the beginning of this article, the discounted 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 the red X), then select Scalar Value in the drop-down list and click the Add button.
This allows us to compare the expected values to the values of specific rows and columns in the result set. Right-click on the row and select Properties, and modify it in the Properties pane, where we want row 1, column 1 to have 0.00.
Now, select Run from the Test menu (run without the debugger in 2005) to run our unit tests. You'll find it takes a while to run the test because it's comparing our database project to the target database to determine if it needs to be deployed or some other configuration that needs to be processed in *** runtimes. You should see an indication that the test failed because the sp_calculate_discount_for_order stored procedure is missing from the database.
The above is "VS 2005 framework how to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.